Skip to content

Commit

Permalink
Add links to profile and logout in wrapper if logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
hoelzro committed Dec 20, 2011
1 parent be97220 commit 1aa7f01
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/ui
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@

<ul class="main-menu">
<li><h2><a href="[% make_uri('') %]">{{Home}}</a></h2> </li>
[% IF global.request.user -%]
<li><h2><a href="[% make_uri('change') %]">[% global.request.user.full_name -%]</a></h2></li>
<li><h2><a href="[% make_uri('logout') %]">{{Logout}}</a></h2> </li>
[% ELSE -%]
<li><h2><a href="[% make_uri('login') %]">{{Login}}</a></h2> </li>
[% END -%]

</ul>

Expand Down

0 comments on commit 1aa7f01

Please sign in to comment.