From cd2ab27f3aaa449ae66bc954fe3f85718a4e7509 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 6 Nov 2022 14:35:57 +0100 Subject: [PATCH] Improve character display on group details --- .../snippets/characters_list/character_card.html | 15 ++++++++++++--- src/party/templates/party/party_details.html | 15 +++------------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/character/templates/character/snippets/characters_list/character_card.html b/src/character/templates/character/snippets/characters_list/character_card.html index d0c46b1..5f5e8cc 100644 --- a/src/character/templates/character/snippets/characters_list/character_card.html +++ b/src/character/templates/character/snippets/characters_list/character_card.html @@ -9,9 +9,18 @@ {{ 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 }}

- - Jouer - + {% if character.player == user %} +
+ + Jouer + + {% if party %} + + Quitter le groupe + + {% endif %} +
+ {% endif %} diff --git a/src/party/templates/party/party_details.html b/src/party/templates/party/party_details.html index 137a610..f734681 100644 --- a/src/party/templates/party/party_details.html +++ b/src/party/templates/party/party_details.html @@ -7,18 +7,9 @@ {% block content %}

{{ party.name }}

MJ : {{ party.game_master.get_full_name|default:party.game_master.username }}

-

Personnages :

- + {% endblock %}