Mercurial > pub > site.implab
diff view/layout/default/base.tt @ 14:d997ff96acf1
sync
author | sergey |
---|---|
date | Mon, 19 May 2014 18:34:16 +0400 |
parents | d9551c7e7101 |
children |
line wrap: on
line diff
--- a/view/layout/default/base.tt Mon May 19 04:34:28 2014 +0400 +++ b/view/layout/default/base.tt Mon May 19 18:34:16 2014 +0400 @@ -18,18 +18,7 @@ id = 'main-menu' )%] [% - IF user.isNobody; - usermenu = [ - { title = 'Login', href= app.location.user.login(ref = location) } - ]; - ELSE; - usermenu = [ - { title = user.name }, - { title = 'Settings', href = app.location.user }, - { title = 'Logout', href = app.location.user.logout } - ]; - END; - render('menu', items = usermenu, class = 'menu-bar float-right', id = 'user-menu'); + render('usermenu'); %] <div style="clear: both"></div> </div>