the beginnings of user-art relations. You can add relations, and it makes sure they...
[zzz-floof.git] / floof / templates / art / show.mako
index 5895be8..45ebcb9 100644 (file)
@@ -1,5 +1,5 @@
 <%inherit file="/base.mako" />
-<%namespace name="comments" file="/comments.mako" />
+<%namespace name="comments" file="/comments/lib.mako" />
 
 <%! from floof.model.art import Rating %>
 
@@ -32,6 +32,20 @@ ${h.submit('score', text)}
 ${h.end_form()}
 % endif
 
+<h2>Relations</h2>
+<ul>
+% for relation in c.art.user_relations:
+<li>${relation.kind}: ${relation.user}
+% endfor
+</ul>
+
+<h2>Add Relations</h2>
+${h.form (h.url("create_relation", kind="by", art_id=c.art.id))}
+By: ${h.text('username')}
+${h.submit('add','Add')}
+${h.end_form()}
+
+
 <img class="full" src="${c.art.get_path()}">
 
-${comments.entire_thread(c.art.discussion)}
+${comments.comment_block(c.art.discussion.comments)}