<li><a href="{{ request.urlgen('mediagoblin.submit.start') }}">
{%- trans %}Add media{% endtrans -%}
</a></li>
- <li><a href="{{ request.urlgen('mediagoblin.user_pages.user_collections',
+ <li><a href="{{ request.urlgen('mediagoblin.user_pages.collection_list',
user=request.user.username) }}">
{%- trans %}Browse collections{% endtrans -%}
</a></li>
'/u/<string:user>/m/<string:media>/collect/',
'mediagoblin.user_pages.views:media_collect')
-add_route('mediagoblin.user_pages.user_collections',
+add_route('mediagoblin.user_pages.collection_list',
'/u/<string:user>/collections/',
- 'mediagoblin.user_pages.views:user_collections')
+ 'mediagoblin.user_pages.views:collection_list')
add_route('mediagoblin.user_pages.user_collection',
'/u/<string:user>/collection/<string:collection>/',
@active_user_from_url
-def user_collections(request, url_user=None):
+def collection_list(request, url_user=None):
"""A User-defined Collection"""
collections = Collection.query.filter_by(
get_creator=url_user)
return render_to_response(
request,
- 'mediagoblin/user_pages/collections.html',
+ 'mediagoblin/user_pages/collection_list.html',
{'user': url_user,
'collections': collections})