projects
/
zzz-floof.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a watchstream page.
[zzz-floof.git]
/
floof
/
templates
/
base.mako
diff --git
a/floof/templates/base.mako
b/floof/templates/base.mako
index
f15b0c6
..
0f3597c
100644
(file)
--- a/
floof/templates/base.mako
+++ b/
floof/templates/base.mako
@@
-11,14
+11,15
@@
<a href="${h.url_for("/")}">Home</a>
% if c.user:
<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
("new_art
")}">Add Art</a>
| <a href="${h.url_for(controller="search", action="list")}">Your Searches</a>
| <a href="${h.url_for(controller="search", action="list")}">Your Searches</a>
+| <a href="${h.url_for(controller="art", action="watchstream", name=c.user.name.lower())}">Watchstream</a>
## | <a href="${h.url_for("/users/"+c.user}">Your Page</a>
% endif
## | <a href="${h.url_for("/users/"+c.user}">Your Page</a>
% endif
-${h.form(h.url_for(
controller=
'search'), method='GET')}
-${h.text('query', c.query)}
-${h.submit('button', 'Search')}
+${h.form(h.url_for('search'), method='GET')}
+${h.text('query', c.query)}
+${h.submit('button', 'Search')}
% if c.user:
${h.submit('button', 'Save')}
% if c.user:
${h.submit('button', 'Save')}
@@
-32,7
+33,7
@@
${h.end_form()}
<div id="user">
% if c.user:
<form action="${url(controller='account', action='logout')}" method="POST">
<div id="user">
% if c.user:
<form action="${url(controller='account', action='logout')}" method="POST">
- <p>Logged in as
${c.user.name}
. ${h.submit(None, 'Log out')}</p>
+ <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">
</form>
% else:
<form action="${url(controller='account', action='login_begin')}" method="POST">
@@
-46,6
+47,17
@@
${h.end_form()}
</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">
${next.body()}
</div>
<div id="body">
${next.body()}
</div>