Mercurial > pub > site.implab
comparison view/layout/default/index.tt @ 14:d997ff96acf1
sync
author | sergey |
---|---|
date | Mon, 19 May 2014 18:34:16 +0400 |
parents | d9551c7e7101 |
children |
comparison
equal
deleted
inserted
replaced
13:a9ce584a7f3b | 14:d997ff96acf1 |
---|---|
9 $content | 9 $content |
10 </div> | 10 </div> |
11 </div> | 11 </div> |
12 <div id="top-menu"> | 12 <div id="top-menu"> |
13 [% | 13 [% |
14 IF user.isNobody; | 14 render('usermenu') |
15 usermenu = [ | |
16 { title = 'Login', href= app.location.user.login(ref = location) } | |
17 ]; | |
18 ELSE; | |
19 usermenu = [ | |
20 { title = user.name }, | |
21 { title = 'Settings', href = app.location.user }, | |
22 { title = 'Logout', href = app.location.user.logout } | |
23 ]; | |
24 END; | |
25 render('menu', items = usermenu, class = 'menu-bar float-right', id = 'user-menu'); | |
26 %] | 15 %] |
27 </div> | 16 </div> |