X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/f263f51648eef9739caa92e19ec45b32d7a1e49e..83db05b7c671b4736dc83393b8ff4e90943a9793:/floof/templates/art/show.mako diff --git a/floof/templates/art/show.mako b/floof/templates/art/show.mako index 05d1e42..3ea3849 100644 --- a/floof/templates/art/show.mako +++ b/floof/templates/art/show.mako @@ -34,18 +34,15 @@ ${h.end_form()} <h2>Relations</h2> <ul> -% for relation in c.art.user_relations: -<li>${relation.kind}: ${relation.user} +% 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> -<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()}"> +<img class="full" src="${h.storage_url('art/medium', c.art.hash)}"> ${comments.comment_block(c.art.discussion.comments)}