Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 7bc93c0d902565d38112fbdf9534fb7d79705782 1 parent f0374a0
@cvan cvan authored
Showing with 7 additions and 5 deletions.
  1. +7 −4 apps/browse/views.py
  2. +0 −1  templates/mobile/base_addons.html
View
11 apps/browse/views.py
@@ -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):
View
1  templates/mobile/base_addons.html
@@ -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 %}
Please sign in to comment.
Something went wrong with that request. Please try again.