annotate view/layout/default/base.tt @ 11:573272ec604b

almost comlete doxygen library
author sergey
date Thu, 15 May 2014 18:24:02 +0400
parents 2d1a0a75fc49
children d9551c7e7101
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
2d1a0a75fc49 added css, templates
sergey
parents: 4
diff changeset
1 [%
2d1a0a75fc49 added css, templates
sergey
parents: 4
diff changeset
2 document.css.push(css.global);
11
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
3 document.css.push(css.forms);
6
2d1a0a75fc49 added css, templates
sergey
parents: 4
diff changeset
4 %]
11
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
5 [% IF document.menu.page.size;
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
6 render('menu', items = document.menu.page, class='menu-bar', id='page-menu');
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
7 END %]
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
8 <div id="header">
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
9 [%
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
10 render(
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
11 'menu',
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
12 items = [
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
13 { title = 'HOME', href = app.location },
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
14 { title = 'Wiki', href = app.location.wiki },
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
15 { title = 'Owncloud', href = app.location.owncloud },
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
16 { title = 'BugZilla', href = app.location.bugzilla },
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
17 { title = 'Library', href = app.location.library },
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
18 { title = 'Mercurial', href = app.location.mercurial }
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
19 ],
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
20 class = 'menu-bar float-left',
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
21 id = 'main-menu'
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
22 )%]
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
23 [%
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
24 IF user.isNobody;
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
25 usermenu = [
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
26 { title = 'Login', href= app.location.user.login(ref = location) }
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
27 ];
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
28 ELSE;
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
29 usermenu = [
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
30 { title = user.name },
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
31 { title = 'Settings', href = app.location.user },
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
32 { title = 'Logout', href = app.location.user.logout }
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
33 ];
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
34 END;
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
35 render('menu', items = usermenu, class = 'menu-bar float-right', id = 'user-menu');
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
36 %]
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
37 <div style="clear: both"></div>
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
38 </div>
4
sergey
parents:
diff changeset
39 $content