fixed empty tag form submission
[zzz-floof.git] / floof / templates / art / show.mako
index 2ac5305..715b9d1 100644 (file)
@@ -2,8 +2,9 @@
 
 <%! 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!')}
@@ -14,7 +15,7 @@ ${h.end_form()}
 <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()}">