From: Christopher Allan Webber Date: Thu, 21 Feb 2013 22:19:43 +0000 (-0600) Subject: Making the tags on media pages point to the user's tag listing specifically. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=631784a2d793119c17d0cb5f656db1eb515add56;p=mediagoblin.git Making the tags on media pages point to the user's tag listing specifically. This commit sponsored by Torsten Meissner. Thanks, Torsten! --- diff --git a/mediagoblin/templates/mediagoblin/utils/tags.html b/mediagoblin/templates/mediagoblin/utils/tags.html index 0127035c..bb4bd1a5 100644 --- a/mediagoblin/templates/mediagoblin/utils/tags.html +++ b/mediagoblin/templates/mediagoblin/utils/tags.html @@ -26,16 +26,20 @@ · {% endif %} {{ tag['name'] }} + 'mediagoblin.user_pages.user_tag_gallery', + tag=tag['slug'], + user=media.get_uploader.username) }}">{{ tag['name'] }} {% elif loop.revindex == 2 %} {{ tag['name'] }} + 'mediagoblin.user_pages.user_tag_gallery', + tag=tag['slug'], + user=media.get_uploader.username) }}">{{ tag['name'] }} {% else %} {{ tag['name'] }} · + 'mediagoblin.user_pages.user_tag_gallery', + tag=tag['slug'], + user=media.get_uploader.username) }}">{{ tag['name'] }} + · {% endif %} {% endfor %}

diff --git a/mediagoblin/user_pages/routing.py b/mediagoblin/user_pages/routing.py index a8a2eba7..6ea3c3e2 100644 --- a/mediagoblin/user_pages/routing.py +++ b/mediagoblin/user_pages/routing.py @@ -41,7 +41,7 @@ add_route('mediagoblin.user_pages.media_home.view_comment', 'mediagoblin.user_pages.views:media_home') # User's tags gallery -add_route('mediagoblin.user_pages.user_gallery', +add_route('mediagoblin.user_pages.user_tag_gallery', '/u//tag//', 'mediagoblin.user_pages.views:user_gallery')