saved searches is going awesome. Partial work on adding them as galleries
[zzz-floof.git] / floof / templates / base.mako
index f50f56a..f15b0c6 100644 (file)
 <div id="header">
 <a href="${h.url_for("/")}">Home</a>
 
+% if c.user:
+| <a href="${h.url_for(controller="art", action="new")}">Add Art</a>
+| <a href="${h.url_for(controller="search", action="list")}">Your Searches</a>
+## | <a href="${h.url_for("/users/"+c.user}">Your Page</a>
+% endif
+
 ${h.form(h.url_for(controller='search'), method='GET')}
-${h.text('query')} ${h.submit(None, 'Search')}
+${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">