posted by me checkbox
[zzz-floof.git] / floof / templates / users / view.mako
1 <%inherit file="/base.mako" />
2 <%namespace name="macros" file="/macros.mako" />
3
4 <p>This is the userpage for ${c.this_user.name}.</p>
5
6 <%! from floof.model.users import UserRelationshipTypes %>
7 % if c.this_user == c.user:
8 ## Nothing
9 <% pass %>\
10 % else:
11 ${h.form(url(controller='user_settings', action='rel_toggle', name=c.user.name.lower()), method='POST')}
12 <p>
13     <input type="hidden" name="target_user" value="${c.this_user.id}">
14     <input type="hidden" name="type" value="${UserRelationshipTypes.IS_WATCHING}">
15     % if UserRelationshipTypes.IS_WATCHING in c.relationships:
16     <input type="hidden" name="add_remove" value="remove">
17     <input type="submit" value="Unwatch">
18     % else:
19     <input type="hidden" name="add_remove" value="add">
20     <input type="submit" value="Watch">
21     % endif
22 % endif
23
24 % for gallery in c.this_user.primary_page.galleries:
25 <h2>${gallery.string}</h2>
26 ${macros.thumbs(gallery.search.results)}
27 % endfor