uploaded by works, and now you can view art on its own page.
[zzz-floof.git] / floof / templates / base.mako
index 340cdf9..5034bf0 100644 (file)
@@ -3,13 +3,33 @@
 <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>
+
+    <div id="user">
+        % if c.user:
+        <p>Logged in as ${c.user.name}</p>
+        % 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>