From b0cc1ade404417a3b4c005ac4e11d5f71ac0c988 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Tue, 18 Dec 2012 12:34:30 +0100 Subject: collections: add support to browse existing collections - add a route at /u//collections/ (note trailing 's') that lists all existing collections - move there the "Create new collection" link, if the user is logged in - add a new link "Browse collections" from root.html --- mediagoblin/user_pages/routing.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mediagoblin/user_pages/routing.py') diff --git a/mediagoblin/user_pages/routing.py b/mediagoblin/user_pages/routing.py index 63bf5c2a..50243a2b 100644 --- a/mediagoblin/user_pages/routing.py +++ b/mediagoblin/user_pages/routing.py @@ -48,6 +48,10 @@ add_route('mediagoblin.user_pages.media_collect', '/u//m//collect/', 'mediagoblin.user_pages.views:media_collect') +add_route('mediagoblin.user_pages.user_collections', + '/u//collections/', + 'mediagoblin.user_pages.views:user_collections') + add_route('mediagoblin.user_pages.user_collection', '/u//collection//', 'mediagoblin.user_pages.views:user_collection') -- cgit v1.2.3