From 256f816f509503676e8213c06ab9ce5db53bf7bb Mon Sep 17 00:00:00 2001 From: Aaron Williamson Date: Sun, 2 Sep 2012 19:19:41 -0400 Subject: [PATCH] Fixed collection sidebar for media_home to user collection.url_for_self instead of incorrectly getting the session user --- mediagoblin/db/mixin.py | 2 +- .../templates/mediagoblin/utils/collections.html | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/mediagoblin/db/mixin.py b/mediagoblin/db/mixin.py index 929c1c7f..e389fef5 100644 --- a/mediagoblin/db/mixin.py +++ b/mediagoblin/db/mixin.py @@ -183,7 +183,7 @@ class CollectionMixin(object): creator = self.get_creator return urlgen( - 'mediagoblin.user_pages.collections_home', + 'mediagoblin.user_pages.user_collection', user=creator.username, collection=self.slug_or_id, **extra_args) diff --git a/mediagoblin/templates/mediagoblin/utils/collections.html b/mediagoblin/templates/mediagoblin/utils/collections.html index feb5dac6..6cb5a342 100644 --- a/mediagoblin/templates/mediagoblin/utils/collections.html +++ b/mediagoblin/templates/mediagoblin/utils/collections.html @@ -25,17 +25,11 @@ {% if media.collections|length > 1 %} · {% endif %} - {{ collection['title'] }} + {{ collection['title'] }} {% elif loop.revindex == 2 %} - {{ collection['title'] }} + {{ collection['title'] }} {% else %} - {{ collection['title'] }} · + {{ collection['title'] }} · {% endif %} {% endfor %}

-- 2.25.1