1 <%inherit file="/base.mako" />
2 <%namespace name="comments" file="/comments/lib.mako" />
4 <%! from floof.model import Rating %>
9 ${h.form (h.url("art_tags", art_id=c.art.id))}
10 Add Some Tags: ${h.text('tags')}
11 ${h.submit('submit', 'Tag!')}
14 % for tag in c.art.tags:
15 ${h.form(h.url("art_tag", art_id=c.art.id, id=tag.id), method="delete")}
16 ${h.submit('delete', 'X')}
17 <a href="${url(controller='search', action='index', query=tag)}">${tag}</a>
21 <h2>What do you think?</h2>
22 ${h.form (h.url("rate_art", id=c.art.id), method="put")}
23 % for score,text in sorted(Rating.options.items()):
25 % if c.your_score == score:
26 ${h.submit('score', text, class_="selected")}
28 ${h.submit('score', text)}
37 % for relation in c.art.user_relations:
38 <li>${relation.kind}: ${relation.user}
42 <h2>Add Relations</h2>
43 ${h.form (h.url("create_relation", kind="by", art_id=c.art.id))}
44 By: ${h.text('username')}
45 ${h.submit('add','Add')}
48 <img class="full" src="${h.storage_url('art/medium', c.art.hash)}">
50 ${comments.comment_block(c.art.discussion.comments)}