merged with mine
[zzz-floof.git] / floof / templates / base.mako
index 340cdf9..f50f56a 100644 (file)
@@ -3,13 +3,39 @@
 <html>
 <head>
 <title>${title()} — Floof</title>
+<link rel="stylesheet" type="text/css" href="/reset.css">
+<link rel="stylesheet" type="text/css" href="/layout.css">
 </head>
 <body>
-% if c.user:
-<p>sup ${c.user.name}</p>
-% else:
-<p>not logged in</p>
-% endif
+<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:
+        <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>
+            Identity URL: <input type="text" name="identity_url">
+            <input type="submit" value="Log in">
+        </p>
+        </form>
+        % endif
+    </div>
+
+
+</div>
+<div id="body">
 ${next.body()}
+</div>
+<div id="footer">
+    <p>Powered by floof</p>
+</div>
 </body>
 </html>