diff options
author | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2012-12-04 16:38:46 +0100 |
---|---|---|
committer | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2013-01-21 17:27:42 +0100 |
commit | f2c0bf3e34f1b56908444fc11504bb0114d0e0a3 (patch) | |
tree | 0e8ab55b82e83bfb6d32ab626cbe2faba7208283 /mediagoblin/templates | |
parent | 69b5623552a86a7cad92571e937384836cf6165c (diff) | |
download | mediagoblin-f2c0bf3e34f1b56908444fc11504bb0114d0e0a3.tar.lz mediagoblin-f2c0bf3e34f1b56908444fc11504bb0114d0e0a3.tar.xz mediagoblin-f2c0bf3e34f1b56908444fc11504bb0114d0e0a3.zip |
Implement user's tag filtered gallery page
tags used to be global, you could only browse media by tag for all users.
This patch implements a view that allows us to browse only a user's tagged
media.
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r-- | mediagoblin/templates/mediagoblin/user_pages/gallery.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mediagoblin/templates/mediagoblin/user_pages/gallery.html b/mediagoblin/templates/mediagoblin/user_pages/gallery.html index e234914f..097cec54 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/gallery.html +++ b/mediagoblin/templates/mediagoblin/user_pages/gallery.html @@ -39,11 +39,12 @@ 'mediagoblin.user_pages.user_home', user=user.username) -%} <a href="{{ user_url }}">{{ username }}</a>'s media - {%- endtrans %} + {%- endtrans %}{% if tag %}{% trans %} with tag '{{tag}}'{% endtrans %} + {%- endif %} </h1> {{ object_gallery(request, media_entries, pagination) }} - + {% set feed_url = request.urlgen('mediagoblin.user_pages.atom_feed', user=user.username) %} {% include "mediagoblin/utils/feed_link.html" %} |