11
|
1 [%
|
|
2 document.css.push(css.global);
|
|
3 document.css.push(css.forms);
|
|
4 docuemnt.css.push(css.index);
|
|
5 %]
|
|
6 <div class="wrapper">
|
|
7 <div class="inline-ghost"> </div>
|
|
8 <div class="page">
|
|
9 $content
|
|
10 </div>
|
|
11 </div>
|
|
12 <div id="top-menu">
|
12
|
13 [%
|
|
14 IF user.isNobody;
|
|
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 %]
|
11
|
27 </div> |