Tiny fixes: save a query for by:me, and count() is a method.
[zzz-floof.git] / floof / templates / art / show.mako
index cf713dc..3ea3849 100644 (file)
@@ -1,7 +1,7 @@
 <%inherit file="/base.mako" />
 <%namespace name="comments" file="/comments/lib.mako" />
 
-<%! from floof.model.art import Rating %>
+<%! from floof.model import Rating %>
 
 <h1>Viewing Art</h1>
 
@@ -32,6 +32,17 @@ ${h.submit('score', text)}
 ${h.end_form()}
 % endif
 
-<img class="full" src="${c.art.get_path()}">
+<h2>Relations</h2>
+<ul>
+% for label, relations in (('Artist', c.art.artists), \
+                               ('Recipient', c.art.recipients), \
+                               ('Participant', c.art.participants)):
+% for user in relations:
+<li>${label}: <a href="${h.url('user_page', name=user.name)}">${user.name}</a>
+% endfor
+% endfor
+</ul>
+
+<img class="full" src="${h.storage_url('art/medium', c.art.hash)}">
 
 ${comments.comment_block(c.art.discussion.comments)}