Added logout. Removed magical routing.
[zzz-floof.git] / floof / templates / base.mako
index e36f3ea..f50f56a 100644 (file)
@@ -16,7 +16,9 @@ ${h.end_form()}
 
     <div id="user">
         % if c.user:
 
     <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>
         % else:
         <form action="${url(controller='account', action='login_begin')}" method="POST">
         <p>