Add link to group in character view.

Closes #27
This commit is contained in:
Gabriel Augendre 2022-11-22 13:27:56 +01:00
parent 79e1810461
commit 4f39677b9e

View file

@ -12,7 +12,9 @@
</p>
{% if party %}
<p>
Groupe : {{ party }}. 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 %}
Groupe : <a href="{{ party.get_absolute_url }}">{{ party }}</a>
&bullet;
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 %}
</p>
{% endif %}
{% if character|managed_by:user %}