1 <%inherit file="/base.mako" />
3 <%! from floof.model.art import Rating %>
8 ${h.form (h.url("art_tags", art_id=c.art.id))}
9 Add Some Tags: ${h.text('tags')}
10 ${h.submit('submit', 'Tag!')}
13 % for tag in c.art.tags:
14 ${h.form(h.url("art_tag", art_id=c.art.id, id=tag.id), method="delete")}
15 ${h.submit('delete', 'X')}
16 <a href="${url(controller='search', action='index', query=tag)}">${tag}</a>
20 <h2>What do you think?</h2>
21 ${h.form (h.url("rate_art", id=c.art.id), method="put")}
22 % for score,text in sorted(Rating.options.items()):
24 % if c.your_score == score:
25 ${h.submit('score', text, class_="selected")}
27 ${h.submit('score', text)}
34 <img class="full" src="${c.art.get_path()}">