* feat: Add new page as requested in #4242 to list all area directors and their current workload. Include links to the specific dashboards for each area director. This new page is in doc/ad/. * feat: Add new page as requested in #4242 to list all area directors and their current workload. Include links to the specific dashboards for each area director. This new page is in doc/ad/. * Fixed issues from the previous commit by renaming hash to get_hash. * Making outer () to be non matching * Fixed RFC Ed Queue Internet-Draft to RFC Ed Queue * refactor: split the /ad view apart from the /ad/name view. * fix: make the new template html valid. * test: start building a test for the new view * refactor: make the view testable and test it. * chore: remove unneeded commented lines * fix: avoid parenthsized-string-looks-like-tuple bug. * fix: repair bad closing tag in template Co-authored-by: Tero Kivinen <kivinen@iki.fi>
39 lines
1.1 KiB
HTML
39 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
{# Copyright The IETF Trust 2015, All Rights Reserved #}
|
|
{% load origin static %}
|
|
{% load ietf_filters %}
|
|
{% block pagehead %}
|
|
<link rel="stylesheet" href="{% static "ietf/css/list.css" %}">
|
|
{% endblock %}
|
|
{% block title %}Area directors{% endblock %}
|
|
{% block content %}
|
|
{% origin %}
|
|
<h1>Area Directors Workload</h1>
|
|
{% for group in workload %}
|
|
<h2>{{ group.group_type }}</h2>
|
|
<table class="table table-sm table-striped tablesorter">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" data-sort="name">Name</th>
|
|
{% for g in group.group_names %}
|
|
<th scope="col" class="text-end" data-sort="{{ g|slugify }}-num">{{ g }}</th>
|
|
{% endfor %}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for ad, ad_counts in group.counts %}
|
|
<tr>
|
|
<td><a href="{{ ad.dashboard }}">{{ ad.name }}</a></td>
|
|
{% for label, count in ad_counts %}
|
|
<td id="{{group.group_type|slugify}}-{{ad.full_name_as_key|slugify}}-{{label|slugify}}">{{count}}</td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endfor %}
|
|
{% endblock %}
|
|
{% block js %}
|
|
<script src="{% static "ietf/js/list.js" %}"></script>
|
|
{% endblock %}
|