From 36047f0720eba14a566ac4d58becff0e53199045 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 31 Oct 2022 14:50:12 +0100 Subject: [PATCH] Improve character list display --- src/character/templates/character/character_card.html | 7 ++++--- src/character/templates/character/list.html | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/character/templates/character/character_card.html b/src/character/templates/character/character_card.html index 4835854..08a9453 100644 --- a/src/character/templates/character/character_card.html +++ b/src/character/templates/character/character_card.html @@ -2,15 +2,16 @@
- - {{ character.name }} - + {{ character.name }}

{{ character.race.name }} {{ character.profile.name }} niv. {{ character.level }}
{{ character.get_gender_display }}, {{ character.age }} ans, {{ character.height_m }}m, {{ character.weight }}kg
PV {{ character.health_remaining }}/{{ character.health_max }}, PM {{ character.mana_remaining }}/{{ character.mana_max }}

+ + Play +
diff --git a/src/character/templates/character/list.html b/src/character/templates/character/list.html index dbf4557..f258c2a 100644 --- a/src/character/templates/character/list.html +++ b/src/character/templates/character/list.html @@ -5,7 +5,7 @@ {% block content %}

Characters

-
+
{% for character in characters %} {% include "character/character_card.html" %} {% endfor %}