datatracker/ietf/templates/doc/ad_count.html
Lars Eggert 9d5d9d5172
fix: replace deprecated bootstrap things (#5858)
* text-muted -> text-body-secondary

* navbar-dark is deprecated

* Remove FIXME block, not an issue anymore

* Remove `navbar-light`
2023-07-18 12:22:28 -05:00

33 lines
1.5 KiB
HTML

{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load ietf_filters %}
{% if prev or count %}
<span{% if count == 0 %} class="text-body-secondary"{% endif %}>{{ count }}</span>
{% if user|has_role:"Area Director,Secretariat" %}
<i data-bs-toggle="popover"
{% if count != prev %}
data-bs-content="
<div class='mb-2 fw-bold'>
{{ delta.days }} days ago, the count was {{ prev }}.
</div>
{% if docs_delta %}
{{ group.group_type }}s in the delta are:
<ul>
{% for d in docs_delta %}
<li><a href='{% url "ietf.doc.views_doc.document_main" d.name %}'>{{ d.name }}</a></li>
{% endfor %}
</ul>
{% endif %}"
{% endif %}
{% with label.2 as up_is_good %}
{% if prev < count %}
class="bi bi-arrow-up-right-circle{% if count %}-fill{% endif %} {{ up_is_good|yesno:'text-success,text-danger,text-body-secondary' }}"
{% elif prev > count %}
class="bi bi-arrow-down-right-circle{% if count %}-fill{% endif %} {{ up_is_good|yesno:'text-danger,text-success,text-body-secondary' }}"
{% else %}
class="bi bi-arrow-right-circle text-body-secondary"
{% endif %}
></i>
{% endwith %}
{% endif %}
{% endif %}