diff 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
line wrap: on
line diff
--- a/view/layout/default/base.tt	Thu May 15 01:51:42 2014 +0400
+++ b/view/layout/default/base.tt	Thu May 15 18:24:02 2014 +0400
@@ -1,4 +1,39 @@
 [%
 	document.css.push(css.global);
+	document.css.push(css.forms);
 %]
+[% IF document.menu.page.size;
+	render('menu', items = document.menu.page, class='menu-bar', id='page-menu');
+END %]
+<div id="header">
+	[%
+		render(
+			'menu',
+			items = [
+				{ title = 'HOME', href = app.location },
+				{ title = 'Wiki', href = app.location.wiki },
+				{ title = 'Owncloud', href = app.location.owncloud },
+				{ title = 'BugZilla', href = app.location.bugzilla },
+				{ title = 'Library', href = app.location.library },
+				{ title = 'Mercurial', href = app.location.mercurial }
+			],
+			class = 'menu-bar float-left',
+			id = 'main-menu'
+	)%]
+	[%
+		IF user.isNobody;
+			usermenu = [
+				{ title = 'Login', href= app.location.user.login(ref = location) }
+			];
+		ELSE;
+			usermenu = [
+				{ title = user.name },
+				{ title = 'Settings', href = app.location.user },
+				{ title = 'Logout', href = app.location.user.logout }
+			];
+		END;
+		render('menu', items = usermenu, class = 'menu-bar float-right', id = 'user-menu');
+	%]
+	<div style="clear: both"></div>
+</div>
 $content
\ No newline at end of file