From 631784a2d793119c17d0cb5f656db1eb515add56 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 21 Feb 2013 16:19:43 -0600 Subject: [PATCH] Making the tags on media pages point to the user's tag listing specifically. This commit sponsored by Torsten Meissner. Thanks, Torsten! --- .../templates/mediagoblin/utils/tags.html | 16 ++++++++++------ mediagoblin/user_pages/routing.py | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) 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') -- 2.25.1