1 <%inherit file="/base.mako" />
2 <%namespace name="macros" file="/macros.mako" />
4 <p>This is the userpage for ${c.this_user.name}.</p>
6 <%! from floof.model.users import UserRelationshipTypes %>
7 % if c.this_user == c.user:
11 ${h.form(url(controller='user_settings', action='rel_toggle', name=c.user.name.lower()), method='POST')}
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">
19 <input type="hidden" name="add_remove" value="add">
20 <input type="submit" value="Watch">
24 <%! from floof.lib.tags import parse %>
25 % for gallery in c.this_user.primary_page.galleries:
26 <h2>${gallery.string}</h2>
27 ${macros.thumbs(parse(gallery.search.string))}