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 @@ - + {% for trophy in trophies %} - + {% if trophy | is_title %} + + {% else %} + + {% endif %} 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
IDIcĂ´neNomTitreStyleModifierSupprimer
StyleModifierSupprimer
{{ trophy.id }} {{ trophy.name }} {{ trophy.name }}{{ trophy | is_title }}OuiNon{{ trophy.css }} Modifier Supprimer