diff --git a/apps/bandwagon/templates/bandwagon/collection_listing.html b/apps/bandwagon/templates/bandwagon/collection_listing.html index b530d839d7c..008a2f6cef5 100644 --- a/apps/bandwagon/templates/bandwagon/collection_listing.html +++ b/apps/bandwagon/templates/bandwagon/collection_listing.html @@ -6,7 +6,11 @@ 'rating': _('Highest Rated Collections'), 'created': _('Recently Added Collections'), } %} -{% set base_url = url('collections.list') %} +{% if userpage %} + {% set base_url = url('collections.user', userpage) %} +{% else %} + {% set base_url = url('collections.list') %} +{% endif %} {% block title %}{{ page_title(titles[filter.field]) }}{% endblock %} @@ -15,8 +19,12 @@ {% block content %}
- {{ breadcrumbs([(base_url, _('Collections')), - (None, filter.title)]) }} + {% set crumbs = [(url('collections.list'), _('Collections')), + (None, filter.title)] %} + {% if userpage %} + {% do crumbs.insert(1, (url('collections.user', userpage), userpage)) %} + {% endif %} + {{ breadcrumbs(crumbs) }}

{{ titles[filter.field] }}