11{% extends "base.html" %}
22{# Copyright The IETF Trust 2021 All Rights Reserved #}
33{% load origin %}
4- {% load person_filters %}
4+ {% load person_filters ietf_filters %}
55{% load static %}
66{% block pagehead %}
77 < link rel ="stylesheet " href ="{% static "ietf /css/list.css" %}">
@@ -26,40 +26,42 @@ <h1>BOF Requests</h1>
2626 {% else %}
2727 {% regroup reqs by get_state_slug as grouped_reqs %}
2828 {% for req_group in grouped_reqs %}
29- < h2 class ="mt-5 "> {{ req_group.grouper|capfirst }} BOF Requests</ h2 >
30- < table id ="bofreqs-{{ req_group.grouper }} "
31- class ="table table-sm table-striped tablesorter ">
32- < thead >
33- < tr >
34- < th scope ="col " data-sort ="name "> Name</ th >
35- < th scope ="col " class ="d-none d-sm-table-cell " data-sort ="date "> Date</ th >
36- < th scope ="col " data-sort ="title "> Title</ th >
37- < th scope ="col " data-sort ="responsible "> Responsible</ th >
38- < th scope ="col " data-sort ="editors "> Editors</ th >
39- </ tr >
40- </ thead >
41- < tbody >
42- {% for req in req_group.list %}
29+ {% if req_group.grouper != "spam" or request.user|has_role:"Secretariat" %}
30+ < h2 class ="mt-5 "> {{ req_group.grouper|capfirst }} BOF Requests</ h2 >
31+ < table id ="bofreqs-{{ req_group.grouper }} "
32+ class ="table table-sm table-striped tablesorter ">
33+ < thead >
4334 < tr >
44- < td >
45- < a href ="{% url 'ietf.doc.views_doc.document_main' name=req.name %} "> {{ req.name }}-{{ req.rev }}</ a >
46- </ td >
47- < td class ="d-none d-sm-table-cell "> {{ req.latest_revision_event.time|date:"Y-m-d" }}</ td >
48- < td > {{ req.title }}</ td >
49- < td >
50- {% for person in req.responsible %}
51- {% person_link person %}{% if not forloop.last %},{% endif %}
52- {% endfor %}
53- </ td >
54- < td >
55- {% for person in req.editors %}
56- {% person_link person %}{% if not forloop.last %},{% endif %}
57- {% endfor %}
58- </ td >
35+ < th scope ="col " data-sort ="name "> Name</ th >
36+ < th scope ="col " class ="d-none d-sm-table-cell " data-sort ="date "> Date</ th >
37+ < th scope ="col " data-sort ="title "> Title</ th >
38+ < th scope ="col " data-sort ="responsible "> Responsible</ th >
39+ < th scope ="col " data-sort ="editors "> Editors</ th >
5940 </ tr >
60- {% endfor %}
61- </ tbody >
62- </ table >
41+ </ thead >
42+ < tbody >
43+ {% for req in req_group.list %}
44+ < tr >
45+ < td >
46+ < a href ="{% url 'ietf.doc.views_doc.document_main' name=req.name %} "> {{ req.name }}-{{ req.rev }}</ a >
47+ </ td >
48+ < td class ="d-none d-sm-table-cell "> {{ req.latest_revision_event.time|date:"Y-m-d" }}</ td >
49+ < td > {{ req.title }}</ td >
50+ < td >
51+ {% for person in req.responsible %}
52+ {% person_link person %}{% if not forloop.last %},{% endif %}
53+ {% endfor %}
54+ </ td >
55+ < td >
56+ {% for person in req.editors %}
57+ {% person_link person %}{% if not forloop.last %},{% endif %}
58+ {% endfor %}
59+ </ td >
60+ </ tr >
61+ {% endfor %}
62+ </ tbody >
63+ </ table >
64+ {% endif %}
6365 {% endfor %}
6466 {% endif %}
6567{% endblock %}
0 commit comments