show our themes under "Recently Added" at /themes/

This commit is contained in:
Chris Van 2013-03-29 14:14:09 -07:00
Родитель f0374a0df2
Коммит 7bc93c0d90
2 изменённых файлов: 7 добавлений и 5 удалений

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

@ -80,10 +80,13 @@ class ESAddonFilter(ESBaseFilter):
def addon_listing(request, addon_types, filter_=AddonFilter,
default='featured'):
# Set up the queryset and filtering for themes & extension listing pages.
qs = (Addon.objects.listed(request.APP, *amo.REVIEWED_STATUSES)
.filter(type__in=addon_types))
filter = filter_(request, qs, 'sort', default)
return filter.qs, filter
if amo.ADDON_PERSONA in addon_types:
qs = Addon.objects.public().filter(type=amo.ADDON_PERSONA)
else:
qs = (Addon.objects.listed(request.APP, *amo.REVIEWED_STATUSES)
.filter(type__in=addon_types))
filter__ = filter_(request, qs, 'sort', default)
return filter__.qs, filter__
def _get_locales(addons):

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

@ -45,7 +45,6 @@
<div id="page">
{% block header %}
<header class="mini-header">
{% include "mobile/header.html" %}
<hgroup>
<h1 class="site-title">
{% set appicon = 'firefox' if request.APP in (amo.MOBILE, amo.ANDROID) else request.APP.short %}