-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Corrige un problème d'espace dans l'affichage des catégories sur une …
…publication
- Loading branch information
Showing
2 changed files
with
13 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% load i18n %} | ||
|
||
<p> | ||
{% trans "Catégorie" %}{{ categories|pluralize }} : | ||
|
||
{# Warning: whitespace in the lines below is crucial for rendering, despite ruining legibility. Change with care. #} | ||
{% for category in categories %}{% if forloop.first %}{% elif forloop.last %} {% trans "et" %}{% else %},{% endif %} | ||
{% if content.is_opinion %} | ||
<a href="{% url 'opinion:list' %}?category={{ category.slug }}">{{ category.title }}</a> | ||
{% else %} | ||
<a href="{% url 'publication:list' %}?subcategory={{ category.slug }}">{{ category.title }}</a>{% endif %}{% endfor %} | ||
</p> |
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