diff view/layout/default/index.tt @ 14:d997ff96acf1

sync
author sergey
date Mon, 19 May 2014 18:34:16 +0400
parents d9551c7e7101
children
line wrap: on
line diff
--- a/view/layout/default/index.tt	Mon May 19 04:34:28 2014 +0400
+++ b/view/layout/default/index.tt	Mon May 19 18:34:16 2014 +0400
@@ -11,17 +11,6 @@
 </div>
 <div id="top-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');
+		render('usermenu')
 	%]
 </div>
\ No newline at end of file