Show login/logout options in the footer, depending on current user state.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 25 Jul 2012 19:07:06 +0000 (21:07 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 26 Jul 2012 05:28:48 +0000 (07:28 +0200)
src/main/resources/templates/include/footer

index d57b438..a099bea 100644 (file)
@@ -1,4 +1,12 @@
 
+<div id="menu">
+<%ifnull currentUser>
+<a href="login">Login</a>
+<%else>
+<a href="logout">Logout</a>
+<%/if>
+</div>
+
 <div id="footer">
 © 2012 David ‘Bombe’ Roden
 </div>