Shuffled base.mako into something like a wireframe design.
authorEevee <eevee@rukushio.(none)>
Wed, 30 Sep 2009 07:51:54 +0000 (00:51 -0700)
committerEevee <eevee@rukushio.(none)>
Wed, 30 Sep 2009 07:51:54 +0000 (00:51 -0700)
floof/public/layout.css [new file with mode: 0644]
floof/templates/base.mako

diff --git a/floof/public/layout.css b/floof/public/layout.css
new file mode 100644 (file)
index 0000000..95db22c
--- /dev/null
@@ -0,0 +1,6 @@
+#header { padding: 1em; background: #c0c0c0; }
+#header #user { text-align: right; }
+
+#body { padding: 1em; }
+
+#footer { padding: 1em; background: #c0c0c0; }
index 50bed27..28003c5 100644 (file)
@@ -7,11 +7,25 @@
 <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">
+    <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>