This commit is contained in:
Chris Van 2011-08-26 09:42:24 -07:00
Родитель bb0c98395d
Коммит 62e2e24da0
4 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -11,7 +11,7 @@
{% block primary %}
<section class="primary">
{% if request.GET %}
{% if sort %}
{{ impala_breadcrumbs([(url('i_collections.list'), _('Collections')),
(None, title)]) }}
<h1>{{ title }}</h1>

Просмотреть файл

@ -119,6 +119,7 @@ def collection_listing(request, base=None, extra={}):
def impala_collection_listing(request, base=None):
sort = request.GET.get('sort')
filter = get_filter(request, base)
collections = amo.utils.paginate(request, filter.qs)
try:
@ -127,7 +128,7 @@ def impala_collection_listing(request, base=None):
addon_collector = None
return render(request, 'bandwagon/impala/collection_listing.html',
dict(collections=collections, src='co-hc-sidebar',
dl_src='co-dp-sidebar', filter=filter,
dl_src='co-dp-sidebar', filter=filter, sort=sort,
sorting=filter.field, addon_collector=addon_collector))

Просмотреть файл

@ -9,7 +9,7 @@
{% block primary %}
<section class="primary">
{% if category or request.GET %}
{% if category or sort %}
{{ impala_breadcrumbs([(url('i_browse.extensions'), _('Extensions')),
(None, title)]) }}
{% else %}

Просмотреть файл

@ -164,12 +164,12 @@ def themes(request, category=None):
def _extensions(request, category=None, is_impala=False, template=None):
TYPE = amo.ADDON_EXTENSION
sort = request.GET.get('sort')
if category is not None:
q = Category.objects.filter(application=request.APP.id, type=TYPE)
category = get_object_or_404(q, slug=category)
if ('sort' not in request.GET and not request.MOBILE
if (sort and not request.MOBILE
and category and category.count > 4):
return category_landing(request, category, is_impala)
@ -182,7 +182,7 @@ def _extensions(request, category=None, is_impala=False, template=None):
return jingo.render(request, template,
{'category': category, 'addons': addons,
'filter': filter, 'sorting': filter.field,
'sort_opts': filter.opts,
'sort_opts': filter.opts, 'sort': sort,
'search_cat': '%s,0' % TYPE})