Test suite runs and passes!
[zzz-floof.git] / floof / templates / users / view.mako
index eb24b2d..40d2e07 100644 (file)
@@ -7,7 +7,7 @@
 % if c.this_user == c.user:
 ## Nothing
 <% pass %>\
 % if c.this_user == c.user:
 ## Nothing
 <% pass %>\
-% else:
+% elif c.user:
 ${h.form(url(controller='user_settings', action='rel_toggle', name=c.user.name.lower()), method='POST')}
 <p>
     <input type="hidden" name="target_user" value="${c.this_user.id}">
 ${h.form(url(controller='user_settings', action='rel_toggle', name=c.user.name.lower()), method='POST')}
 <p>
     <input type="hidden" name="target_user" value="${c.this_user.id}">
@@ -19,10 +19,12 @@ ${h.form(url(controller='user_settings', action='rel_toggle', name=c.user.name.l
     <input type="hidden" name="add_remove" value="add">
     <input type="submit" value="Watch">
     % endif
     <input type="hidden" name="add_remove" value="add">
     <input type="submit" value="Watch">
     % endif
+</p>
+${h.end_form()}
 % endif
 
 % endif
 
-<%! from floof.lib.search import parse %>
+<%! from floof.lib.tags import parse %>
 % for gallery in c.this_user.primary_page.galleries:
 <h2>${gallery.string}</h2>
 % for gallery in c.this_user.primary_page.galleries:
 <h2>${gallery.string}</h2>
-${macros.thumbs(parse(gallery.tags.string))}
+${macros.thumbs(parse(gallery.search.string, me=c.this_user))}
 % endfor
 % endfor