Skip to content

Commit

Permalink
Create a link to the backend in the demo theme (octobercms#5100)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMazB authored Sep 4, 2020
1 parent dd5fd34 commit c49e941
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions themes/demo/partials/site/header.htm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
==
function onStart()
{
$this['backendUrl'] = Backend::url('/');
}
==
<!-- Nav -->
<nav id="layout-nav" class="navbar navbar-inverse navbar-fixed-top navbar-autohide" role="navigation">
<div class="container">
Expand All @@ -16,6 +22,7 @@
<li class="{% if this.page.id == 'home' %}active{% endif %}"><a href="{{ 'home'|page }}">Basic concepts</a></li>
<li class="{% if this.page.id == 'ajax' %}active{% endif %}"><a href="{{ 'ajax'|page }}">AJAX framework</a></li>
<li class="{% if this.page.id == 'plugins' %}active{% endif %}"><a href="{{ 'plugins'|page }}">Plugin components</a></li>
<li><a href="{{ backendUrl }}" target="backend">Sign in to the Backend</a></li>
</ul>
</div>
</div>
Expand Down

0 comments on commit c49e941

Please sign in to comment.