Permalink
Browse files

Add links to profile and logout in wrapper if logged in

  • Loading branch information...
1 parent be97220 commit 1aa7f0149fe11859779aafa688b0900e2c81e612 @hoelzro committed Dec 20, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 templates/ui
View
@@ -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>

0 comments on commit 1aa7f01

Please sign in to comment.