Skip to content

Commit

Permalink
Merge pull request #3532 from sandhose/fix-filter-display-3507
Browse files Browse the repository at this point in the history
Fix #3507 : correction de l'affichage des noms des filtres
  • Loading branch information
SpaceFox committed Apr 10, 2016
2 parents 01a60cb + 5b78707 commit 464434f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions templates/tutorialv2/index_online.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
{% block title %}
{% if tag %}
{{ tag }}
{% elif category %}
{{ category }}
{% else %}
{% trans "Tous les" %} {{ verbose_type_name_plural }}
{% endif %}
Expand All @@ -20,6 +22,10 @@
{% blocktrans %}
Découvrez tous nos {{ verbose_type_name_plural }} sur {{ tag }}. Vous pourrez également découvrir divers sujets tous plus intéressants les uns que les autres !
{% endblocktrans %}
{% elif category %}
{% blocktrans %}
Découvrez tous nos {{ verbose_type_name_plural }} sur {{ category }}. Vous pourrez également découvrir divers sujets tous plus intéressants les uns que les autres !
{% endblocktrans %}
{% else %}
{% blocktrans %}
Les {{ verbose_type_name_plural }} vous permettent d'apprendre divers sujets tous plus intéressants les uns que les autres.
Expand All @@ -32,6 +38,8 @@
{% block breadcrumb %}
{% if tag %}
<li>{{ tag }}</li>
{% elif category %}
<li>{{ category }}</li>
{% else %}
<li>{% trans "Tous les" %} {{ verbose_type_name_plural }}</li>
{% endif %}
Expand All @@ -45,6 +53,8 @@ <h1 class="ico-after ico-{% if current_content_type == "TUTORIAL" %}tutorials{%
{% block headline %}
{% if tag %}
{{ verbose_type_name_plural|title }} : {{ tag }}
{% elif category %}
{{ verbose_type_name_plural|title }} : {{ category }}
{% else %}
{% trans "Tous les" %} {{ verbose_type_name_plural }}
{% endif %}
Expand Down
1 change: 1 addition & 0 deletions zds/tutorialv2/views/views_published.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ def get_context_data(self, **kwargs):
public_content.content.public_version = public_content
public_content.content.count_note = public_content.count_note
context['category'] = self.category
context['tag'] = self.tag
context['top_categories'] = top_categories_content(self.current_content_type)

return context
Expand Down

0 comments on commit 464434f

Please sign in to comment.