Display path rank as badge

This commit is contained in:
Gabriel Augendre 2022-11-10 22:53:02 +01:00
parent ca32576054
commit ca394f19a3

View file

@ -1,7 +1,7 @@
{% load character_extras %} {% load character_extras %}
<div class="col-12 col-md-6 col-xl-4"> <div class="col-12 col-md-6 col-xl-4">
<h5> <h5>
{{ path.display_name }} ({{ path|max_rank:character }}) {{ path.display_name }} <span class="badge text-bg-dark rounded-pill">{{ path|max_rank:character }}</span>
{% if character|managed_by:user %} {% if character|managed_by:user %}
<div class="btn-group btn-group-sm"> <div class="btn-group btn-group-sm">
<button hx-get="{% url "character:remove_last_in_path" character_pk=character.pk path_pk=path.pk %}" <button hx-get="{% url "character:remove_last_in_path" character_pk=character.pk path_pk=path.pk %}"