-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
1 parent
56bd75a
commit 9db1958
Showing
4 changed files
with
313 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{# 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 %} |
Oops, something went wrong.