-
Notifications
You must be signed in to change notification settings - Fork 539
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Factorize the nav template code in a template of its own
- Loading branch information
Showing
3 changed files
with
23 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<nav id="aux-nav" role="navigation" class="menu-nav c"> | ||
<ul> | ||
{% if not settings.READ_ONLY %} | ||
{% include "impala/user_login.html" %} | ||
{% endif %} | ||
{% block aux_nav %} | ||
<li> | ||
<a href="#" id="other-apps" title="{{ _('Find add-ons for other applications') }}">{{ _('Other Applications') }}</a> | ||
<ul class="other-apps"> | ||
{% for app in amo.APP_USAGE %} | ||
{% if app != request.APP and app != amo.MOBILE %} | ||
<li id="app-{{ app.short }}" class="{{ app.short }}"> | ||
<a href="{{ locale_url(app.short) }}">{{ app.pretty }}</a> | ||
</li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
</li> | ||
{% endblock aux_nav %} | ||
</ul> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters