mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-12-22 22:01:48 +01:00
Improve character card render
This commit is contained in:
parent
833584a2b7
commit
3cf359744a
1 changed files with 10 additions and 3 deletions
|
@ -24,9 +24,16 @@
|
|||
</p>
|
||||
<div class="btn-group btn-group-sm">
|
||||
{% if character|managed_by:user %}
|
||||
<a href="{% url "character:view" pk=character.pk %}" class="btn btn-success">
|
||||
<i class="fa-solid fa-user"></i> {% if character.player == user %}Jouer{% else %}Gérer{% endif %}
|
||||
</a>
|
||||
{% if character.player == user %}
|
||||
<a href="{% url "character:view" pk=character.pk %}" class="btn btn-success">
|
||||
<i class="fa-solid fa-user"></i> Jouer
|
||||
</a>
|
||||
{% else %}
|
||||
|
||||
<a href="{% url "character:view" pk=character.pk %}" class="btn btn-primary">
|
||||
<i class="fa-solid fa-cog"></i> Gérer
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if party %}
|
||||
<a href="{% url "party:leave" pk=party.pk character_pk=character.pk %}" class="btn btn-warning">
|
||||
<i class="fa-solid fa-person-walking-arrow-right"></i> Quitter le groupe
|
||||
|
|
Loading…
Reference in a new issue