<% with $BetterNavigator %>
<% if $ArchiveLink.Active %>
<% if $EditLink %>
Restore<% end_if %>
<% else %>
<% if not $LiveLink.Active %>
<% if $LiveLink.Link %>
View live
<% else %>
Not yet published
<% end_if %>
<% end_if %>
<% if not $StageLink.Active %>
<% if $StageLink.Link %>
View draft
<% else %>
Deleted from draft site
<% end_if %>
<% end_if %>
<% if $EditLink %>
Edit in CMS<% end_if %>
<% end_if %>
<% if $Member %>
$LogoutForm
Log out<% if $Member.FirstName %> ($Member.FirstName)<% end_if %>
<% else %>
Log in
<% end_if %>
<% end_with %>
<% include BetterNavigator\BetterNavigatorExtraContent %>
<% if $BetterNavigator.Mode=='dev' || $BetterNavigator.IsDeveloper %>
Developer tools
<% include BetterNavigator\BetterNavigatorExtraDevTools %>
Debugging
<% include BetterNavigator\BetterNavigatorExtraDebugging %>
<% end_if %>