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