6
|
1 [%
|
|
2 document.css.push(css.global);
|
11
|
3 document.css.push(css.forms);
|
6
|
4 %]
|
11
|
5 <div id="header">
|
|
6 [%
|
|
7 render(
|
|
8 'menu',
|
|
9 items = [
|
|
10 { title = 'HOME', href = app.location },
|
|
11 { title = 'Wiki', href = app.location.wiki },
|
|
12 { title = 'Owncloud', href = app.location.owncloud },
|
|
13 { title = 'BugZilla', href = app.location.bugzilla },
|
|
14 { title = 'Library', href = app.location.library },
|
|
15 { title = 'Mercurial', href = app.location.mercurial }
|
|
16 ],
|
|
17 class = 'menu-bar float-left',
|
|
18 id = 'main-menu'
|
|
19 )%]
|
|
20 [%
|
|
21 IF user.isNobody;
|
|
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 %]
|
|
34 <div style="clear: both"></div>
|
|
35 </div>
|
12
|
36
|
|
37 [% IF document.menu.page.size;
|
|
38 render('menu', items = document.menu.page, class='menu-bar', id='page-menu');
|
|
39 END %]
|
|
40 <div id="page-content">
|
|
41 $content
|
|
42 </div> |