Skip to content

Commit 6d17ab8

Browse files
committed
Port wginfo/ to new schema, delete some dead code. Missing tests and
still a little bit of cruft left from views in other modules. - Legacy-Id: 6084
1 parent 9b65f3b commit 6d17ab8

34 files changed

Lines changed: 558 additions & 593 deletions

ietf/templates/doc/document_charter.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{% if snapshot %}Snapshot of{% endif %}
2626
{% if doc.get_state_slug != "approved" %}Proposed{% endif %}
2727
Charter for "{{ group.name }}"
28-
(<a {% if group.type.slug == "wg" %}href="{% url ietf.wginfo.views.wg_charter acronym=group.acronym %}"{% endif %}>{{ group.acronym }}</a>) {{ group.type.name }}
28+
(<a {% if group.type.slug == "wg" %}href="{% url ietf.wginfo.views.group_charter acronym=group.acronym %}"{% endif %}>{{ group.acronym }}</a>) {{ group.type.name }}
2929
</div>
3030

3131
<table id="metatable" width="100%">
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% load ietf_filters %}{% for wg in wg_list|dictsort:"group_acronym.acronym" %}{% if wg.area.area.status_id == 1 and wg.area.area.acronym != "iesg" %}{% if wg.start_date %}{{ wg }}
2-
{% endif %}{% endif %}{% endfor %}
3-
{% for wg in wg_list|dictsort:"group_acronym.acronym" %}{% if wg.area.area.status_id == 1 and wg.area.area.acronym != "iesg" %}{% if wg.start_date %}{% include "wginfo/wg-charter.txt" %}
4-
{% endif %}{% endif %}{% endfor %}
1+
{% autoescape off %}{% load ietf_filters %}{% for group in groups %}{{ group.acronym }}
2+
{% endfor %}
3+
4+
{% for group in groups %}{% include "wginfo/group_entry_with_charter.txt" %}{% endfor %}{% endautoescape %}
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
{% load ietf_filters %}{% regroup wg_list|dictsort:"area_acronym.acronym" by area.area as wga_list %}{% for area in wga_list %}{% for wg in area.list|dictsort:"group_acronym.name" %}{% if wg.area.area.status_id == 1 and wg.area.area.acronym != "iesg" %}{% if wg.start_date %}{{ wg }}
2-
{% endif %}{% endif %}{% endfor %}{% endfor %}
1+
{% autoescape off %}{% load ietf_filters %}{% for area in areas %}{% for group in area.groups %}{{ group.acronym }}
2+
{% endfor %}{% endfor %}
3+
4+
{% for area in areas %}{% for group in area.groups %}{% include "wginfo/group_entry_with_charter.txt" %}{% endfor %}{% endfor %}{% endautoescape %}
35

4-
{% regroup wg_list|dictsort:"area_acronym.acronym" by area.area as wga_list %}{% for area in wga_list %}{% for wg in area.list|dictsort:"group_acronym.name" %}{% if wg.area.area.status_id == 1 and wg.area.area.acronym != "iesg" %}{% if wg.start_date %}
5-
{% include "wginfo/wg-charter.txt" %}
6-
{% endif %}{% endif %}{% endfor %}{% endfor %}
76

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
{% load ietf_filters %}
1+
{% autoescape off %}{% load ietf_filters %}
22
IETF Working Group Summary (By Acronym)
33

44

55
The following Area Abbreviations are used in this document
6-
{% for area in area_list %}
7-
{{ area|upper }} - {{ area.area_acronym.name }}{% endfor %}
8-
{% for wg in wg_list|dictsort:"group_acronym.acronym" %}{% if wg.start_date %}
9-
{{ wg.group_acronym.name|safe }} ({{ wg }}) -- {{ wg.area.area|upper }}
10-
{% include "wginfo/wg_summary.txt" %}{% endif %}{% endfor %}
6+
{% for area in areas %}
7+
{{ area.acronym|upper }} - {{ area.name }}{% endfor %}
8+
{% for group in groups %}
9+
{{ group.name }} ({{ group.acronym }}) -- {{ group.parent.acronym|upper }}
10+
{% include "wginfo/group_entry.txt" %}{% endfor %}{% endautoescape %}
Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
{% load ietf_filters %} IETF Working Group Summary (By Area)
2-
{% regroup wg_list|dictsort:"area.area.area_acronym.acronym" by area.area as wga_list %}{% for area in wga_list %}{% for wg in area.list|dictsort:"group_acronym.acronym" %}{% ifequal wg.area.area.status_id 1 %}{% if forloop.first %}
3-
{{ wg.area_acronym.name }} ({{ wg.area_acronym }})
4-
{{ wg.area_acronym.name|dashify }}------{% for ad in wg.area_directors %}
5-
{{ ad.person }} <{{ ad.person.email.1 }}>{% endfor %}
6-
{% endif %}{% if wg.start_date %}
7-
{{ wg.group_acronym.name|safe }} ({{ wg }})
8-
{% include "wginfo/wg_summary.txt" %}{% endif %}{% endifequal %}{% endfor %}{% endfor %}
1+
{% autoescape off %}{% load ietf_filters %}
2+
IETF Working Group Summary (By Area)
3+
4+
5+
{% for area in areas %}{{ area.name }} ({{ area.acronym }})
6+
{{ area.name|dashify }}------{% for ad in area.ads %}
7+
{{ ad.person }} <{{ ad.address }}>{% endfor %}
8+
9+
{% for group in area.groups %}{{ group.name }} ({{ group.acronym }})
10+
{% include "wginfo/group_entry.txt" %}
11+
{% endfor %}{% endfor %}{% endautoescape %}

ietf/templates/wginfo/bofs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h1>Bofs</h1>
2525
{% for g in groups %}
2626
<tr class="{{ forloop.counter|divisibleby:2|yesno:"oddrow,evenrow" }}">
2727
<td class="acronym">
28-
<a href="{% url wg_charter acronym=g.acronym %}">{{ g.acronym }}</a>
28+
<a href="{% url group_charter acronym=g.acronym %}">{{ g.acronym }}</a>
2929
</td>
3030
<td class="title">
3131
<a {%comment%}href="{% url doc_view name=g.charter.name %}"{%endcomment%}>{{ g.name }}</a>

ietf/templates/wginfo/chartering_wgs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1>Chartering or Re-Chartering Working Groups</h1>
2828
{% for g in groups %}
2929
<tr class="{{ forloop.counter|divisibleby:2|yesno:"oddrow,evenrow" }}">
3030
<td class="acronym">
31-
<a href="{% url wg_charter acronym=g.acronym %}">{{ g.acronym }}</a>
31+
<a href="{% url group_charter acronym=g.acronym %}">{{ g.acronym }}</a>
3232
</td>
3333
<td class="title">
3434
<a href="{% url doc_view name=g.charter.name %}">{{ g.name }}</a>

ietf/templates/wginfo/conclude.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1>Request closing of {{ wg.acronym }}</h1>
2828
{{ form.as_table }}
2929
<tr>
3030
<td colspan="2" class="actions">
31-
<a href="{% url wg_charter acronym=wg.acronym %}">Back</a>
31+
<a href="{% url group_charter acronym=wg.acronym %}">Back</a>
3232
<input type="submit" value="Send request"/>
3333
</td>
3434
</tr>

ietf/templates/wginfo/edit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h1>
6666
<td></td>
6767
<td class="actions">
6868
{% ifequal action "edit" %}
69-
<a href="{% url wg_charter acronym=wg.acronym %}">Back</a>
69+
<a href="{% url group_charter acronym=wg.acronym %}">Back</a>
7070
<input type="submit" value="Save"/>
7171
{% else %}
7272
{% ifequal action "charter" %}

0 commit comments

Comments
 (0)