X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/55270a42bf0699bd78b95a945fddd73a165507ee..e0b6c733c6bea7ff31b9361650fb8534b9433597:/floof/templates/users/view.mako diff --git a/floof/templates/users/view.mako b/floof/templates/users/view.mako index 9f39bae..9d34279 100644 --- a/floof/templates/users/view.mako +++ b/floof/templates/users/view.mako @@ -1,3 +1,28 @@ <%inherit file="/base.mako" /> +<%namespace name="macros" file="/macros.mako" />

This is the userpage for ${c.this_user.name}.

+ +<%! from floof.model.users import UserRelationshipTypes %> +% if c.this_user == c.user: +## Nothing +<% pass %>\ +% else: +${h.form(url(controller='user_settings', action='rel_toggle', name=c.user.name.lower()), method='POST')} +

+ + + % if UserRelationshipTypes.IS_WATCHING in c.relationships: + + + % else: + + + % endif +% endif + +<%! from floof.lib.search import parse %> +% for gallery in c.this_user.primary_page.galleries: +

${gallery.string}

+${macros.thumbs(parse(gallery.search.string))} +% endfor