Added logout. Removed magical routing.
[zzz-floof.git] / floof / templates / base.mako
index 28003c5..f50f56a 100644 (file)
@@ -8,9 +8,17 @@
 </head>
 <body>
 <div id="header">
+<a href="${h.url_for("/")}">Home</a>
+
+${h.form(h.url_for(controller='search'), method='GET')}
+${h.text('query')} ${h.submit(None, 'Search')}
+${h.end_form()}
+
     <div id="user">
         % if c.user:
-        <p>Logged in as ${c.user.name}</p>
+        <form action="${url(controller='account', action='logout')}" method="POST">
+        <p>Logged in as ${c.user.name}.  ${h.submit(None, 'Log out')}</p>
+        </form>
         % else:
         <form action="${url(controller='account', action='login_begin')}" method="POST">
         <p>
@@ -20,6 +28,8 @@
         </form>
         % endif
     </div>
+
+
 </div>
 <div id="body">
 ${next.body()}