saved searches is going awesome. Partial work on adding them as galleries
[zzz-floof.git] / floof / templates / art / show.mako
index fc0a3f8..715b9d1 100644 (file)
@@ -2,19 +2,20 @@
 
 <%! from floof.model.art import Rating %>
 
-<h1>View Art</h1>
+<h1>Viewing Art</h1>
 
+% if c.user:
 ${h.form (h.url_for (controller='art', action='tag', id=c.art.id), multipart=True)}
 Add Some Tags: ${h.text('tags')}
 ${h.submit('submit', 'Tag!')}
 ${h.end_form()}
 
 % for tag in c.art.tags:
-<a href="${h.url_for (controller='tag', action='delete', id=tag.id)}">x</a> 
-<a href="${h.url_for (controller='search', action='index')}?query=${tag}">${tag}</a>
+<a href="${url(controller='tag', action='delete', id=tag.id)}">x</a>
+<a href="${url(controller='search', action='index', query=tag)}">${tag}</a>
 % endfor
 
-What do you think?
+<h2>What do you think?</h2>
 % for score,text in sorted(Rating.options.items()):
 <a href="${h.url_for(controller='art', action='rate', id=c.art.id)}?score=${score}" \
 % if c.your_score == score:
@@ -22,6 +23,7 @@ class="selected" \
 % endif
 >${text}</a> 
 % endfor
+% endif
 
 <img class="full" src="${c.art.get_path()}">