2020-12-14 23:10:20 +01:00
<div id= "BetterNavigator" class= "collapsed $CssClass" >
2015-12-18 00:58:50 +01:00
2020-12-14 23:10:20 +01:00
<div id= "BetterNavigatorStatus" class= "$Viewing" >
<span class= "bn-icon-cog" ></span>
$ViewingTitle
<span class= "bn-icon-close" ></span>
</div>
2015-12-18 00:58:50 +01:00
2015-12-18 04:34:13 +01:00
<div id= "BetterNavigatorContent" >
2015-12-18 00:58:50 +01:00
2015-12-18 04:34:13 +01:00
<div class= "bn-links" >
2015-12-18 00:58:50 +01:00
2020-12-14 23:10:20 +01:00
<% if $ArchiveLink . Active %>
<% if $EditLink %><a href= "$EditLink" target= "_blank" ><span class= "bn-icon-edit" ></span><%t JonoM \ BetterNavigator . RESTORE_LABEL 'Restore ' %></a><% end_if %>
<% else %>
<% if not $LiveLink . Active %>
<% if $LiveLink . Link %>
<a href= "$LiveLink.Link" ><span class= "bn-icon-view" ></span><%t JonoM \ BetterNavigator . VIEW_LIVE_LABEL 'View live ' %></a>
<% else %>
<span class= "bn-disabled" ><span class= "bn-icon-view" ></span><%t JonoM \ BetterNavigator . NOT_YET_PUBLISHED_LABEL 'Not yet published ' %></span>
2015-12-18 00:58:50 +01:00
<% end_if %>
2020-12-14 23:10:20 +01:00
<% end_if %>
<% if not $StageLink . Active %>
<% if $StageLink . Link %>
<a href= "$StageLink.Link" ><span class= "bn-icon-view" ></span><%t JonoM \ BetterNavigator . VIEW_DRAFT_LABEL 'View draft ' %></a>
<% else %>
<span class= "bn-disabled" ><span class= "bn-icon-view" ></span><%t JonoM \ BetterNavigator . DELETED_FROM_DRAFT_SITE_LABEL 'Deleted from draft site ' %></span>
2015-12-18 00:58:50 +01:00
<% end_if %>
2015-12-18 04:34:13 +01:00
<% end_if %>
2020-12-14 23:10:20 +01:00
<% if $EditLink %><a href= "$EditLink" target= "_blank" ><span class= "bn-icon-edit" ></span><%t JonoM \ BetterNavigator . EDIT_IN_CMS_LABEL 'Edit in CMS ' %></a><% end_if %>
<% end_if %>
2015-12-18 00:58:50 +01:00
2020-12-14 23:10:20 +01:00
<% if $Member %>
$LogoutForm
<a href= "$LogoutLink" id= "BetterNavigatorLogoutLink" ><span class= "bn-icon-user" ></span><%t JonoM \ BetterNavigator . LOG_OUT_LABEL 'Log out ' %><% if $Member . FirstName %><span class= "light" > ( $Member . FirstName ) </span><% end_if %></a>
<% else %>
<a href= "$LoginLink" ><span class= "bn-icon-user" ></span><%t JonoM \ BetterNavigator . LOG_IN_LABEL 'Log in ' %></a>
<% end_if %>
2015-12-18 00:58:50 +01:00
2015-12-18 04:34:13 +01:00
</div>
2015-12-18 00:58:50 +01:00
2023-02-13 20:21:27 +01:00
<% include JonoM \ BetterNavigator \ BetterNavigatorExtraContent %>
2015-12-18 00:58:50 +01:00
2020-12-14 23:10:20 +01:00
<% if $Mode == 'dev ' || $IsDeveloper %>
2015-12-18 00:58:50 +01:00
2020-11-21 00:10:34 +01:00
<div class= "bn-heading" ><%t JonoM \ BetterNavigator . DEVELOPER_TOOLS_HEADING 'Developer tools ' %></div>
2015-12-18 00:58:50 +01:00
2015-12-18 04:34:13 +01:00
<div class= "bn-links" >
2015-12-18 00:58:50 +01:00
2019-08-23 19:10:19 +02:00
<% if $Mode= 'dev ' %>
2020-11-21 00:10:34 +01:00
<span class= "bn-disabled" title= "<%t JonoM\BetterNavigator.END_DEV_MODE_TITLE 'Log out to end Dev Mode' %>" >
<span class= "bn-icon-tick" ></span>
<%t JonoM \ BetterNavigator . DEV_MOVE_ON_LABEL 'Dev mode on ' %>
</span>
2015-12-18 04:34:13 +01:00
<% else %>
2020-11-21 00:10:34 +01:00
<a href= "{$AbsoluteLink}?isDev=1" ><span class= "bn-icon-devmode" ></span><%t JonoM \ BetterNavigator . DEV_MODE_LABEL 'Dev mode ' %></a>
2015-12-18 04:34:13 +01:00
<% end_if %>
2015-12-18 00:58:50 +01:00
2020-11-21 00:10:34 +01:00
<a href= "{$AbsoluteLink}?flush=1"
title= "<%t JonoM\BetterNavigator.FLUSH_CACHE_TITLE 'Flush templates and manifest, and regenerate images for this page (behaviour varies by Framework version)' %>"
>
<span class= "bn-icon-flush" ></span>
<%t JonoM \ BetterNavigator . FLUSH_CACHE_LABEL 'Flush caches ' %>
</a>
2023-02-12 21:00:57 +01:00
<a href= "/dev/build/?flush=1"
2020-11-21 00:10:34 +01:00
target= "_blank"
title= "<%t JonoM\BetterNavigator.BUILD_DATABASE_TITLE 'Build database and flush caches (excludes template caches pre SS-3.1.7)' %>"
>
<span class= "bn-icon-db" ></span>
<%t JonoM \ BetterNavigator . BUILD_DATABASE_LABEL 'Build database ' %>
</a>
2023-02-12 21:00:57 +01:00
<a href= "/dev/" target= "_blank" ><span class= "bn-icon-tools" ></span><%t JonoM \ BetterNavigator . DEV_MENU_LABEL 'Dev menu ' %></a>
2015-12-18 00:58:50 +01:00
2015-12-18 04:34:13 +01:00
</div>
2015-12-18 00:58:50 +01:00
2023-02-13 20:21:27 +01:00
<% include JonoM \ BetterNavigator \ BetterNavigatorExtraDevTools %>
2015-12-18 00:58:50 +01:00
2019-08-23 19:58:33 +02:00
<% end_if %>
2020-12-14 23:10:20 +01:00
<% if $Mode == 'dev ' %>
2019-08-23 19:58:33 +02:00
2020-11-21 00:10:34 +01:00
<div class= "bn-heading" ><%t JonoM \ BetterNavigator . DEBUGGING_HEADING 'Debugging ' %></div>
2015-12-18 00:58:50 +01:00
2015-12-18 04:34:13 +01:00
<div class= "bn-links" >
2015-12-18 00:58:50 +01:00
2020-11-21 00:10:34 +01:00
<a href= "{$AbsoluteLink}?showtemplate=1"
title= "<%t JonoM\BetterNavigator.SHOW_TEMPLATE_TITLE 'Show the compiled version of all the templates used, including line numbers. Good when you have a syntax error in a template. Cannot be used on a Live site without isDev' %>"
>
<span class= "bn-icon-info" ></span>
<%t JonoM \ BetterNavigator . SHOW_TEMPLATE_LABEL 'Show template ' %>
</a>
<a href= "{$AbsoluteLink}?execmetric=1"
title= "<%t JonoM\BetterNavigator.EXEC_METRIC_TITLE 'Display the execution time and peak memory usage for the request' %>"
>
<span class= "bn-icon-info" ></span>
<%t JonoM \ BetterNavigator . SHOW_METRICS_LABEL 'Show metrics ' %>
</a>
<a href= "{$AbsoluteLink}?debug=1"
title= "<%t JonoM\BetterNavigator.DEBUG_PAGE_TITLE 'Show a collection of debugging information about the director / controller operation' %>"
>
<span class= "bn-icon-info" ></span>
<%t JonoM \ BetterNavigator . DEBUG_PAGE_LABEL 'Debug page ' %>
</a>
<a href= "{$AbsoluteLink}?debug_request=1"
title= "<%t JonoM\BetterNavigator.DEBUG_REQUEST_TITLE 'Show all steps of the request from initial HTTPRequest to Controller to Template Rendering' %>"
>
<span class= "bn-icon-info" ></span>
<%t JonoM \ BetterNavigator . DEBUG_REQUEST_LABEL 'Debug request ' %>
</a>
<a href= "{$AbsoluteLink}?debugfailover=1"
title= "<%t JonoM\BetterNavigator.DEBUG_FAILOVER_TITLE 'Shows failover methods from classes extended' %>"
>
<span class= "bn-icon-info" ></span>
<%t JonoM \ BetterNavigator . DEBUG_FAILOVER_LABEL 'Debug failover ' %>
</a>
<a href= "{$AbsoluteLink}?showqueries=1"
title= "<%t JonoM\BetterNavigator.SHOW_QUERIES_TITLE 'List all SQL queries executed' %>"
>
<span class= "bn-icon-info" ></span>
<%t JonoM \ BetterNavigator . SHOW_QUERIES_LABEL 'Show queries ' %>
</a>
<a href= "{$AbsoluteLink}?previewwrite=1"
title= "<%t JonoM\BetterNavigator.PREVIEW_WRITE_TITLE " List all insert / update SQL queries, and don 't execute them . Useful for previewing writes to the database " %>"
>
<span class= "bn-icon-info" ></span>
<%t JonoM \ BetterNavigator . PREVIEW_WRITE_LABEL 'Preview write ' %>
</a>
2015-12-18 00:58:50 +01:00
2015-12-18 04:34:13 +01:00
</div>
2015-12-18 00:58:50 +01:00
2023-02-13 20:21:27 +01:00
<% include JonoM \ BetterNavigator \ BetterNavigatorExtraDebugging %>
2015-12-18 00:58:50 +01:00
2015-12-18 04:34:13 +01:00
<% end_if %>
2015-12-18 00:58:50 +01:00
</div>
2015-12-18 04:34:13 +01:00
</div>
2020-03-12 00:37:45 +01:00
<script type= "application/javascript" src= "$ScriptUrl" ></script>
<link rel= "stylesheet" href= "$CssUrl" />