diff --git a/app/templates/admin/trophies.html b/app/templates/admin/trophies.html index 4755157..19e6cc1 100644 --- a/app/templates/admin/trophies.html +++ b/app/templates/admin/trophies.html @@ -14,13 +14,17 @@
ID | IcĂ´ne | Nom | Titre | -Style | Modifier | Supprimer | Style | Modifier | Supprimer | {% for trophy in trophies %}
---|---|---|---|---|---|---|---|---|
{{ trophy.id }} | {{ trophy.name }} | -{{ trophy | is_title }} | + {% if trophy | is_title %} +Oui | + {% else %} +Non | + {% endif %}{{ trophy.css }} |
Modifier | Supprimer | diff --git a/app/utils/is_title.py b/app/utils/is_title.py index 9727039..bee2c42 100644 --- a/app/utils/is_title.py +++ b/app/utils/is_title.py @@ -8,6 +8,6 @@ def is_title(object): Check if an object is a title """ if isinstance(object, Title): - return "Oui" + return True else: - return "Non" + return False