+
+${h.form(url('search'), method='GET')}
+${h.text('query', c.query)}
+${h.submit('button', 'Search')}
+
+% if c.user:
+${h.submit('button', 'Save')}
+% endif
+
+## Note: should probably only display "save" when we're on a results page
+## Also, what if we had it save a hidden form containing the search result that was
+## actually rendered? Might be confusing though.
+${h.end_form()}
+
+ <div id="user">
+ % if c.user:
+ <form action="${url(controller='account', action='logout')}" method="POST">
+ <p>Logged in as <a href="${h.url('user_page', name=c.user.name.lower())}">${c.user.name}</a>. ${h.submit(None, 'Log out')}</p>
+ </form>
+ % else:
+ <form action="${url(controller='account', action='login_begin')}" method="POST">
+ <p>Log in or register with <img src="/icons/openid.png" alt="OpenID" title="OpenID"> OpenID:</p>
+ <p>
+ <input type="text" name="identity_url" id="identity-url">
+ <input type="submit" value="Log in">
+ </p>
+ <p class="what"><a href="${url(controller='account', action='login')}">What's this?</a></p>
+ </form>
+ % endif
+ </div>
+
+
+</div>
+
+<% messages = h.flash.pop_messages() %>
+% if messages:
+<ul id="flash-messages">
+ % for message in messages:
+ <li>${message}</li>
+ % endfor
+</ul>
+% endif
+
+
+<div id="body">