Skip to content

Commit

Permalink
Merge pull request #3517 from gustavi/fix-3494
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardPaligot committed Apr 6, 2016
2 parents cf876e5 + ebfe1d5 commit 9f71ff7
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,51 @@
<a href="{% url "article:list" %}" class="mobile-menu-link {% block menu_article %}{% endblock %}">
{% trans "Articles" %}
</a>
<div class="dropdown header-menu-dropdown">
<a href="{% url "article:list" %}" class="dropdown-link-all">
{% trans "Tous les articles" %}
</a>

<ul class="dropdown-list">
{% with categories='ARTICLE'|top_categories_content %}
{% for title, subcats in categories.categories.items %}
<li>
<ul>
<li class="dropdown-title">
{{ title }}
</li>
{% for subcat,slug in subcats %}
<li>
<a href="{% url "article:list" %}?category={{ slug }}">
{{ subcat }}
</a>
</li>
{% endfor %}
</ul>
</li>
{% empty %}
<ul>
<li class="dropdown-title">
{% trans "Aucun article disponible." %}
</li>
</ul>
{% endfor %}
{% if categories.tags %}
<li>
<ul>
<li class="dropdown-title">
{% trans "Tags les plus utilisés" %}
</li>
{% for tag in categories.tags %}
<li><a href="{% url 'article:list' %}?tag={{ tag.slug }}">{{ tag }}</a></li>
{% endfor %}
<li><a href="{% url 'content:tags' %}">Tous les tags</a></li>
</ul>
</li>
{% endif %}
{% endwith %}
</ul>
</div>
</li>
<li>
<a href="{% url "cats-forums-list" %}" class="mobile-menu-link {% block menu_forum %}{% endblock %}">
Expand Down

0 comments on commit 9f71ff7

Please sign in to comment.