silverstripe-betternavigator/templates/BetterNavigator/BetterNavigator.ss

85 lines
4.1 KiB
Scheme
Raw Normal View History

<div id="BetterNavigator" class="collapsed">
2015-12-18 00:58:50 +01:00
<div id="BetterNavigatorStatus" class="$Viewing">
<span class="bn-icon-cog"></span>
$Viewing
<span class="bn-icon-close"></span>
</div>
2015-12-18 00:58:50 +01:00
<div id="BetterNavigatorContent">
2015-12-18 00:58:50 +01:00
<div class="bn-links">
2015-12-18 00:58:50 +01:00
<% if $ArchiveLink.Active %>
<% if $EditLink %><a href="$EditLink" target="_blank"><span class="bn-icon-edit"></span>Restore</a><% end_if %>
<% else %>
<% if not $LiveLink.Active %>
<% if $LiveLink.Link %>
<a href="$LiveLink.Link"><span class="bn-icon-view"></span>View live</a>
<% else %>
<span class="bn-disabled"><span class="bn-icon-view"></span>Not yet published</span>
2015-12-18 00:58:50 +01:00
<% end_if %>
<% end_if %>
<% if not $StageLink.Active %>
<% if $StageLink.Link %>
<a href="$StageLink.Link"><span class="bn-icon-view"></span>View draft</a>
<% else %>
<span class="bn-disabled"><span class="bn-icon-view"></span>Deleted from draft site</span>
<% end_if %>
2015-12-18 00:58:50 +01:00
<% end_if %>
<% if $EditLink %><a href="$EditLink" target="_blank"><span class="bn-icon-edit"></span>Edit in CMS</a><% end_if %>
<% end_if %>
2015-12-18 00:58:50 +01:00
<% if $Member %>
$LogoutForm
<a href="$LogoutLink" id="BetterNavigatorLogoutLink"><span class="bn-icon-user"></span>Log out<% if $Member.FirstName %><span class="light"> ($Member.FirstName)</span><% end_if %></a>
<% else %>
<a href="$LoginLink"><span class="bn-icon-user"></span>Log in</a>
<% end_if %>
2015-12-18 00:58:50 +01:00
</div>
2015-12-18 00:58:50 +01:00
<% include BetterNavigator\BetterNavigatorExtraContent %>
2015-12-18 00:58:50 +01:00
<% if $Mode=='dev' || $IsDeveloper %>
2015-12-18 00:58:50 +01:00
<div class="bn-heading">Developer tools</div>
2015-12-18 00:58:50 +01:00
<div class="bn-links">
2015-12-18 00:58:50 +01:00
<% if $Mode='dev' %>
<span class="bn-disabled" title="Log out to end Dev Mode"><span class="bn-icon-tick"></span>Dev mode on</span>
<% else %>
<a href="{$AbsoluteLink}?isDev=1"><span class="bn-icon-devmode"></span>Dev mode</a>
<% end_if %>
2015-12-18 00:58:50 +01:00
<a href="{$AbsoluteLink}?flush=1" title="Flush templates and manifest, and regenerate images for this page (behaviour varies by Framework version)"><span class="bn-icon-flush"></span>Flush caches</a>
<a href="{$AbsoluteBaseURL}dev/build/?flush=1" target="_blank" title="Build database and flush caches (excludes template caches pre SS-3.1.7)"><span class="bn-icon-db"></span>Build database</a>
<a href="{$AbsoluteBaseURL}dev/" target="_blank"><span class="bn-icon-tools"></span>Dev menu</a>
2015-12-18 00:58:50 +01:00
</div>
2015-12-18 00:58:50 +01:00
<% include BetterNavigator\BetterNavigatorExtraDevTools %>
2015-12-18 00:58:50 +01:00
<div class="bn-heading">Debugging</div>
2015-12-18 00:58:50 +01:00
<div class="bn-links">
2015-12-18 00:58:50 +01:00
<a href="{$AbsoluteLink}?showtemplate=1"><span class="bn-icon-info"></span>Show template</a>
<a href="{$AbsoluteLink}?debug=1&amp;isDev=1"><span class="bn-icon-info"></span>Debug page</a>
<a href="{$AbsoluteLink}?debugmethods=1"><span class="bn-icon-info"></span>Debug methods</a>
<a href="{$AbsoluteLink}?debug_request=1&amp;isDev=1"><span class="bn-icon-info"></span>Debug request</a>
<a href="{$AbsoluteLink}?debugfailover=1&amp;isDev=1"><span class="bn-icon-info"></span>Debug failover</a>
<a href="{$AbsoluteLink}?showqueries=1&amp;isDev=1"><span class="bn-icon-info"></span>Show queries</a>
<a href="{$AbsoluteLink}?previewwrite=1&amp;isDev=1"><span class="bn-icon-info"></span>Preview write</a>
2015-12-18 00:58:50 +01:00
</div>
2015-12-18 00:58:50 +01:00
<% include BetterNavigator\BetterNavigatorExtraDebugging %>
2015-12-18 00:58:50 +01:00
<% end_if %>
2015-12-18 00:58:50 +01:00
</div>
</div>