merged with mine
[zzz-floof.git] / floof / templates / base.mako
1 <%def name="title()">Untitled</%def>\
2 <!DOCTYPE html>
3 <html>
4 <head>
5 <title>${title()} — Floof</title>
6 <link rel="stylesheet" type="text/css" href="/reset.css">
7 <link rel="stylesheet" type="text/css" href="/layout.css">
8 </head>
9 <body>
10 <div id="header">
11 <a href="${h.url_for("/")}">Home</a>
12
13 ${h.form(h.url_for(controller='search'), method='GET')}
14 ${h.text('query')} ${h.submit(None, 'Search')}
15 ${h.end_form()}
16
17     <div id="user">
18         % if c.user:
19         <form action="${url(controller='account', action='logout')}" method="POST">
20         <p>Logged in as ${c.user.name}.  ${h.submit(None, 'Log out')}</p>
21         </form>
22         % else:
23         <form action="${url(controller='account', action='login_begin')}" method="POST">
24         <p>
25             Identity URL: <input type="text" name="identity_url">
26             <input type="submit" value="Log in">
27         </p>
28         </form>
29         % endif
30     </div>
31
32
33 </div>
34 <div id="body">
35 ${next.body()}
36 </div>
37 <div id="footer">
38     <p>Powered by floof</p>
39 </div>
40 </body>
41 </html>