Skip to content

Commit

Permalink
Enlève les lower en trop dans la bibliothèque
Browse files Browse the repository at this point in the history
  • Loading branch information
gllmc committed Nov 7, 2017
1 parent 698e468 commit e44e605
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions templates/tutorialv2/view/base_categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
{% block title %}
{% if category %}
{% if subcategory %}
{% trans "Publications dans" %} {{ subcategory.title|lower }}
{% trans "Publications dans" %} {{ subcategory.title }}
{% else %}
{% trans "Publications dans" %} {{ category.title|lower }}
{% trans "Publications dans" %} {{ category.title }}
{% endif %}
{% else %}
{% trans "Toutes les publications" %}
Expand All @@ -33,12 +33,12 @@

{% block description %}
{% if category %}
{% set name as category.title %}
{% set category.title as name %}
{% if subcategory %}
{% set name as subcategory.title %}
{% set subcategory.title as name %}
{% endif %}

{% blocktrans with name=name|lower%}
{% blocktrans %}
Découvrez tous nos publications dans {{ name }}. Vous pourrez également découvrir divers sujets tous plus intéressants les uns que les autres !
{% endblocktrans %}
{% else %}
Expand Down Expand Up @@ -116,7 +116,7 @@ <h2 class="has-separator">Parcourir</h2>
<div class="aside">
<form action="{% url 'search:query' %}" id="search-form" class="search" method="get">
<label for="id_q" class="control-label">Recherche</label>
<input id="id_q" maxlength="150" name="q" required="required" type="search" placeholder="{% trans 'dans' %} {% if subcategory %}{{ subcategory.title|lower }}{% elif category %}{{ category.title|lower }}{% else %}{% trans 'la bibliothèque' %}{% endif %}…">
<input id="id_q" maxlength="150" name="q" required="required" type="search" placeholder="{% trans 'dans' %} {% if subcategory %}{{ subcategory.title }}{% elif category %}{{ category.title }}{% else %}{% trans 'la bibliothèque' %}{% endif %}…">
<input type="hidden" name="models" value="content">
<input type="hidden" name="from_library" value="on">
{% if category %}
Expand Down
6 changes: 3 additions & 3 deletions templates/tutorialv2/view/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

{% block content_category %}
<section>
<h2 class="inline" itemprop="name">Catégories dans {{ category.title | lower }}</h2>
<h2 class="inline" itemprop="name">Catégories dans {{ category.title }}</h2>
{% include 'tutorialv2/list_page_elements/list_subcategories.html' with subcategories=subcategories %}
</section>

Expand All @@ -23,7 +23,7 @@ <h2 itemprop="name">
</h2>
{% include 'tutorialv2/list_page_elements/list_of_online_contents.html' with public_contents=last_tutorials col_number=1 %}
{% if last_tutorials and more_tutorials %}
<a href="{% url 'publication:list' %}?category={{ category.slug }}&amp;type=tutorial" class="more-link">Plus de tutoriels dans {{ category.title | lower }}</a>
<a href="{% url 'publication:list' %}?category={{ category.slug }}&amp;type=tutorial" class="more-link">Plus de tutoriels dans {{ category.title }}</a>
{% endif %}
</section>

Expand All @@ -35,7 +35,7 @@ <h2 itemprop="name">
</h2>
{% include 'tutorialv2/list_page_elements/list_of_online_contents.html' with public_contents=last_articles col_number=1 %}
{% if last_articles and more_articles %}
<a href="{% url 'publication:list' %}?category={{ category.slug }}&amp;type=article" class="more-link">Plus d’articles dans {{ category.title | lower }}</a>
<a href="{% url 'publication:list' %}?category={{ category.slug }}&amp;type=article" class="more-link">Plus d’articles dans {{ category.title }}</a>
{% endif %}
</section>
</div>
Expand Down
4 changes: 2 additions & 2 deletions templates/tutorialv2/view/subcategory.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h2 itemprop="name">
</h2>
{% include 'tutorialv2/list_page_elements/list_of_online_contents.html' with public_contents=last_tutorials col_number=1 %}
{% if last_tutorials and more_tutorials %}
<a href="{% url 'publication:list' %}?subcategory={{ subcategory.slug }}&amp;type=tutorial" class="more-link">Plus de tutoriels dans {{ subcategory.title | lower }}</a>
<a href="{% url 'publication:list' %}?subcategory={{ subcategory.slug }}&amp;type=tutorial" class="more-link">Plus de tutoriels dans {{ subcategory.title }}</a>
{% endif %}
</section>

Expand All @@ -24,7 +24,7 @@ <h2 itemprop="name">
</h2>
{% include 'tutorialv2/list_page_elements/list_of_online_contents.html' with public_contents=last_articles col_number=1 %}
{% if last_articles and more_articles %}
<a href="{% url 'publication:list' %}?subcategory={{ subcategory.slug }}&amp;type=article" class="more-link">Plus d’articles dans {{ subcategory.title | lower }}</a>
<a href="{% url 'publication:list' %}?subcategory={{ subcategory.slug }}&amp;type=article" class="more-link">Plus d’articles dans {{ subcategory.title }}</a>
{% endif %}
</section>
</div>
Expand Down

0 comments on commit e44e605

Please sign in to comment.