mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-22 22:48:03 +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>
|
</p>
|
||||||
<div class="btn-group btn-group-sm">
|
<div class="btn-group btn-group-sm">
|
||||||
{% if character|managed_by:user %}
|
{% if character|managed_by:user %}
|
||||||
<a href="{% url "character:view" pk=character.pk %}" class="btn btn-success">
|
{% if character.player == user %}
|
||||||
<i class="fa-solid fa-user"></i> {% if character.player == user %}Jouer{% else %}Gérer{% endif %}
|
<a href="{% url "character:view" pk=character.pk %}" class="btn btn-success">
|
||||||
</a>
|
<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 %}
|
{% if party %}
|
||||||
<a href="{% url "party:leave" pk=party.pk character_pk=character.pk %}" class="btn btn-warning">
|
<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
|
<i class="fa-solid fa-person-walking-arrow-right"></i> Quitter le groupe
|
||||||
|
|
Loading…
Reference in a new issue