Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
update Collections subnav to reflect new sort options (bug 681808)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Van committed Aug 25, 2011
1 parent c0cdd12 commit 2e5d2ad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/amo/templates/amo/site_nav.html
Expand Up @@ -18,6 +18,12 @@
</li>
{% endmacro %}

{% set collection_extras = (
('featured', _('Featured')),
('users', _('Most Subscribers')),
('created', _('Newest')),
) %}

<nav id="site-nav" class="menu-nav c">
<ul>
{{ section('extensions', _('Extensions'), url('browse.extensions'), extras, extensions) }}
Expand All @@ -29,7 +35,7 @@
<a href="#">{{ _('Collections') }}</a>
<ul>
{% with base_url = url('collections.list') %}
{% for sort, title in extras %}
{% for sort, title in collection_extras %}
<li><em><a href="{{ base_url|urlparams(sort=sort) }}">{{ title }}</a></em></li>
{% endfor %}
{% endwith %}
Expand Down

0 comments on commit 2e5d2ad

Please sign in to comment.