mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-12-22 22:01:48 +01:00
Improve character list display
This commit is contained in:
parent
ac3a0b6dd1
commit
36047f0720
2 changed files with 5 additions and 4 deletions
|
@ -2,15 +2,16 @@
|
|||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">
|
||||
<a href="{% url "character:view" pk=character.pk %}">
|
||||
{{ character.name }}
|
||||
</a>
|
||||
{{ character.name }}
|
||||
</h5>
|
||||
<p class="card-text">
|
||||
{{ character.race.name }} {{ character.profile.name }} niv. {{ character.level }}<br>
|
||||
{{ character.get_gender_display }}, {{ character.age }} ans, {{ character.height_m }}m, {{ character.weight }}kg<br>
|
||||
PV {{ character.health_remaining }}/{{ character.health_max }}, PM {{ character.mana_remaining }}/{{ character.mana_max }}
|
||||
</p>
|
||||
<a href="{% url "character:view" pk=character.pk %}" class="btn btn-sm btn-primary">
|
||||
<i class="fa-solid fa-user"></i> Play
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
{% block content %}
|
||||
<h1>Characters</h1>
|
||||
<div class="row row-cols-4 g-4">
|
||||
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4 g-4">
|
||||
{% for character in characters %}
|
||||
{% include "character/character_card.html" %}
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in a new issue