datatracker/ietf/templates/doc/ad_count.html
Lars Eggert 9db1958bdd
feat: Add column sums to /doc/ad dashboard (#4415)
* feat: Add column sums to /doc/ad dashboard

* Tweak template a bit

* Add trend indicators when logged in as AD

* Shorten column headings more; put full heading into tooltip

* Fix trend colors; add table dividers

* Add note about trend indicators

* Wording fix

* Show which docs make up the delta if there is a trend change

* Fix missing stats

* More space before headings

* Better popover formatting

* Make popover trigger clickable, and add links to docs in the delta

* Improve trends

* Fix tests and shorten headers

* Add button to IESG dashboard to AD dashboards.

* fix: use tz-aware calculations for ad_workload view

Co-authored-by: Jennifer Richards <jennifer@painless-security.com>
2022-09-08 14:00:18 -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-muted"{% 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-muted' }}"
{% elif prev > count %}
class="bi bi-arrow-down-right-circle{% if count %}-fill{% endif %} {{ up_is_good|yesno:'text-danger,text-success,text-muted' }}"
{% else %}
class="bi bi-arrow-right-circle text-muted"
{% endif %}
></i>
{% endwith %}
{% endif %}
{% endif %}