fixed search query (awesome now thanks vee =]), tag links, default routing is back...
[zzz-floof.git] / floof / templates / art / show.mako
index d77f364..fc0a3f8 100644 (file)
@@ -1,5 +1,7 @@
 <%inherit file="/base.mako" />
 
+<%! from floof.model.art import Rating %>
+
 <h1>View Art</h1>
 
 ${h.form (h.url_for (controller='art', action='tag', id=c.art.id), multipart=True)}
@@ -9,9 +11,17 @@ ${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='results')}?query=${tag}">${tag}</a>
+<a href="${h.url_for (controller='search', action='index')}?query=${tag}">${tag}</a>
 % endfor
 
+What do you think?
+% 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:
+class="selected" \
+% endif
+>${text}</a> 
+% endfor
 
 <img class="full" src="${c.art.get_path()}">