comparison view/layout/default/base.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
16 ], 16 ],
17 class = 'menu-bar float-left', 17 class = 'menu-bar float-left',
18 id = 'main-menu' 18 id = 'main-menu'
19 )%] 19 )%]
20 [% 20 [%
21 IF user.isNobody; 21 render('usermenu');
22 usermenu = [
23 { title = 'Login', href= app.location.user.login(ref = location) }
24 ];
25 ELSE;
26 usermenu = [
27 { title = user.name },
28 { title = 'Settings', href = app.location.user },
29 { title = 'Logout', href = app.location.user.logout }
30 ];
31 END;
32 render('menu', items = usermenu, class = 'menu-bar float-right', id = 'user-menu');
33 %] 22 %]
34 <div style="clear: both"></div> 23 <div style="clear: both"></div>
35 </div> 24 </div>
36 25
37 [% IF document.menu.page.size; 26 [% IF document.menu.page.size;