mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-22 14:38:03 +01:00
Display profile pics in group members links
This commit is contained in:
parent
2b7e071e71
commit
279b8ed186
3 changed files with 14 additions and 3 deletions
|
@ -15,7 +15,18 @@
|
||||||
<p>
|
<p>
|
||||||
Groupe : <a href="{{ party.get_absolute_url }}">{{ party }}</a>
|
Groupe : <a href="{{ party.get_absolute_url }}">{{ party }}</a>
|
||||||
•
|
•
|
||||||
Joueurs : {% for other in party.characters.all %}<a href="{% url "character:view" pk=other.pk %}?party={{ party.pk }}">{{ other }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}
|
Joueurs :
|
||||||
|
{% for other in party.characters.all %}
|
||||||
|
<a href="{% url "character:view" pk=other.pk %}?party={{ party.pk }}">
|
||||||
|
{% if other.profile_picture %}
|
||||||
|
<img class="rounded-5 profile-pic-small"
|
||||||
|
src="{{ other.profile_picture.url }}"
|
||||||
|
alt="Image de profil"
|
||||||
|
>
|
||||||
|
{% endif %}
|
||||||
|
{{ other }}
|
||||||
|
</a>{% if not forloop.last %}, {% endif %}
|
||||||
|
{% endfor %}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if character|managed_by:user %}
|
{% if character|managed_by:user %}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<h5 class="card-title">
|
<h5 class="card-title">
|
||||||
{% if character.profile_picture %}
|
{% if character.profile_picture %}
|
||||||
<img src="{{ character.profile_picture.url }}"
|
<img src="{{ character.profile_picture.url }}"
|
||||||
class="profile-pic rounded-5"
|
class="profile-pic-small rounded-5"
|
||||||
alt="Image de profil"
|
alt="Image de profil"
|
||||||
>
|
>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -11,7 +11,7 @@ blockquote {
|
||||||
border-left: solid #d5d5d5 4px;
|
border-left: solid #d5d5d5 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card img.profile-pic {
|
img.profile-pic-small {
|
||||||
width: 28px;
|
width: 28px;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
|
|
Loading…
Reference in a new issue