renamed 'categorie' -> 'étagère'

This commit is contained in:
Sylvain Gay 2024-05-02 14:43:21 +02:00
parent 67c64c0d1c
commit d8551052fd
4 changed files with 7 additions and 6 deletions

View file

@ -13,7 +13,7 @@ class Category(models.Model):
class Meta:
ordering = ["name"]
verbose_name = "catégorie"
verbose_name = "étagère"
def __str__(self):
return self.name

View file

@ -4,7 +4,8 @@
<h1><i class="fa fa-bookmark" aria-hidden="true"></i> {{ category.name }}</h1>
{% with game_list=category.game_set.all %}
<p>Il y a {{ game_list|length }} jeu{{ game_list|pluralize:"x" }} dans cette catégorie&nbsp;:</p>
<p>Il y a {{ game_list|length }} jeu{{ game_list|pluralize:"x" }} dans cette
étagère&nbsp;:</p>
{% for game in game_list %}
{% include "./partials/game_item.html" %}
{% endfor %}

View file

@ -1,9 +1,9 @@
{% extends "base.html" %}
{% block "content" %}
<h1>Liste des catégories</h1>
<h1>Liste des étagères</h1>
<p>Il y a {{ paginator.count }} catégorie{{ paginator.count|pluralize }} de jeux&nbsp;:</p>
<p>Il y a {{ paginator.count }} étagère{{ paginator.count|pluralize }} de jeux&nbsp;:</p>
{% include "partials/pagination.html" %}
{% for category in category_list %}

View file

@ -12,9 +12,9 @@
<hr/>
<a class="button" href="{% url "inventory:category_list" %}">
Liste des catégories
Liste des étagères
<p class="helptext">
Chaque jeu est rangé dans une unique catégorie comme en salle Jeux
Chaque jeu est rangé dans une unique étagère comme en salle Jeux
</p>
</a>
<a class="button" href="{% url "inventory:tag_list" %}">