annotate view/layout/default/base.tt @ 13:a9ce584a7f3b

test for mercurial repositories
author sergey
date Mon, 19 May 2014 04:34:28 +0400
parents d9551c7e7101
children d997ff96acf1
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 <div id="header">
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
6 [%
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
7 render(
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
8 'menu',
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
9 items = [
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
10 { title = 'HOME', href = app.location },
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
11 { title = 'Wiki', href = app.location.wiki },
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
12 { title = 'Owncloud', href = app.location.owncloud },
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
13 { title = 'BugZilla', href = app.location.bugzilla },
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
14 { title = 'Library', href = app.location.library },
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
15 { title = 'Mercurial', href = app.location.mercurial }
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
16 ],
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
17 class = 'menu-bar float-left',
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
18 id = 'main-menu'
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
19 )%]
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
20 [%
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
21 IF user.isNobody;
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
22 usermenu = [
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
23 { title = 'Login', href= app.location.user.login(ref = location) }
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
24 ];
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
25 ELSE;
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
26 usermenu = [
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
27 { title = user.name },
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
28 { title = 'Settings', href = app.location.user },
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
29 { title = 'Logout', href = app.location.user.logout }
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
30 ];
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
31 END;
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
32 render('menu', items = usermenu, class = 'menu-bar float-right', id = 'user-menu');
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
33 %]
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
34 <div style="clear: both"></div>
573272ec604b almost comlete doxygen library
sergey
parents: 6
diff changeset
35 </div>
12
d9551c7e7101 improved dox library
sergey
parents: 11
diff changeset
36
d9551c7e7101 improved dox library
sergey
parents: 11
diff changeset
37 [% IF document.menu.page.size;
d9551c7e7101 improved dox library
sergey
parents: 11
diff changeset
38 render('menu', items = document.menu.page, class='menu-bar', id='page-menu');
d9551c7e7101 improved dox library
sergey
parents: 11
diff changeset
39 END %]
d9551c7e7101 improved dox library
sergey
parents: 11
diff changeset
40 <div id="page-content">
d9551c7e7101 improved dox library
sergey
parents: 11
diff changeset
41 $content
d9551c7e7101 improved dox library
sergey
parents: 11
diff changeset
42 </div>