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)
{% if media.collections|length > 1 %}
·
{% endif %}
- <a href="{{ request.urlgen(
- 'mediagoblin.user_pages.user_collection',
- collection=collection['slug'], user=request.user.username) }}">{{ collection['title'] }}</a>
+ <a href="{{ collection.url_for_self(request.urlgen) }}">{{ collection['title'] }}</a>
{% elif loop.revindex == 2 %}
- <a href="{{ request.urlgen(
- 'mediagoblin.user_pages.user_collection',
- collection=collection['slug'], user=request.user.username) }}">{{ collection['title'] }}</a>
+ <a href="{{ collection.url_for_self(request.urlgen) }}">{{ collection['title'] }}</a>
{% else %}
- <a href="{{ request.urlgen(
- 'mediagoblin.user_pages.user_collection',
- collection=collection['slug'], user=request.user.username) }}">{{ collection['title'] }}</a> ·
+ <a href="{{ collection.url_for_self(request.urlgen) }}">{{ collection['title'] }}</a> ·
{% endif %}
{% endfor %}
</p>