2ac530551707e0dc3acadb51e0c29a27733d3a44
[zzz-floof.git] / floof / templates / art / show.mako
1 <%inherit file="/base.mako" />
2
3 <%! from floof.model.art import Rating %>
4
5 <h1>View Art</h1>
6
7 ${h.form (h.url_for (controller='art', action='tag', id=c.art.id), multipart=True)}
8 Add Some Tags: ${h.text('tags')}
9 ${h.submit('submit', 'Tag!')}
10 ${h.end_form()}
11
12 % for tag in c.art.tags:
13 <a href="${url(controller='tag', action='delete', id=tag.id)}">x</a>
14 <a href="${url(controller='search', action='index', query=tag)}">${tag}</a>
15 % endfor
16
17 What do you think?
18 % for score,text in sorted(Rating.options.items()):
19 <a href="${h.url_for(controller='art', action='rate', id=c.art.id)}?score=${score}" \
20 % if c.your_score == score:
21 class="selected" \
22 % endif
23 >${text}</a> 
24 % endfor
25
26 <img class="full" src="${c.art.get_path()}">
27