Skip to content

Commit ad357e0

Browse files
committed
Parameterize the <wg> in /wg/<acronym> to allow for RGs, add simple /rg/ overview page based on similar /wg/ overview page, fix links and other WG/RG-specific details. All the basic pages under /rg/ now appear to be working for RGs. Edit pages and permissions are not adapted yet, though.
- Legacy-Id: 7535
1 parent 28a3d68 commit ad357e0

25 files changed

Lines changed: 312 additions & 248 deletions

ietf/community/display.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def get_value(self, document, raw=False):
8888
if raw:
8989
return document.group.acronym
9090
else:
91-
return '<a href="%s">%s</a>' % (urlreverse('wg_docs', kwargs={'acronym':document.group.acronym}), document.group.acronym) if (document.group and document.group.acronym != 'none') else ''
91+
return '<a href="%s">%s</a>' % (urlreverse('group_docs', kwargs=dict(group_type=document.group.type_id, acronym=document.group.acronym)), document.group.acronym) if (document.group and document.group.acronym != 'none') else ''
9292

9393

9494
class ADField(DisplayField):

ietf/doc/views_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def document_main(request, name, rev=None):
242242
elif group.type_id in ("rg", "wg"):
243243
submission = "%s %s" % (group.acronym, group.type)
244244
if group.type_id == "wg":
245-
submission = "<a href=\"%s\">%s</a>" % (urlreverse("wg_docs", kwargs=dict(acronym=doc.group.acronym)), submission)
245+
submission = "<a href=\"%s\">%s</a>" % (urlreverse("group_docs", kwargs=dict(group_type=doc.group.type_id, acronym=doc.group.acronym)), submission)
246246
if doc.stream_id and doc.get_state_slug("draft-stream-%s" % doc.stream_id) == "c-adopt":
247247
submission = "candidate for %s" % submission
248248

ietf/templates/base/left_menu.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
</div></div></li>
7474

7575
<li style="padding-top:0;"><a href="/wg/">Active WGs</a></li>
76-
<li><a href="{% url "ietf.wginfo.views.chartering_wgs" %}">Chartering WGs</a></li>
77-
<li><a href="{% url "ietf.wginfo.views.bofs" %}">BoFs</a></li>
76+
<li><a href="{% url "ietf.wginfo.views.chartering_wgs" group_type="wg" %}">Chartering WGs</a></li>
77+
<li><a href="{% url "ietf.wginfo.views.bofs" group_type="wg" %}">BoFs</a></li>
7878
<li><a href="http://tools.ietf.org/wg/concluded">Concluded WGs</a></li>
7979
<li><a href="http://www.ietf.org/list/nonwg.html">Non-WG Lists</a></li>
8080

ietf/templates/doc/document_charter.html

Lines changed: 2 additions & 2 deletions
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.group_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" group_type=group.type_id acronym=group.acronym %}"{% endif %}>{{ group.acronym }}</a>) {{ group.type.name }}
2929
</div>
3030

3131
<table id="metatable" width="100%">
@@ -132,7 +132,7 @@ <h3>Charter {{ doc.canonical_name }}-{{ doc.rev }}
132132
{% if not snapshot and chartering %}
133133
<h3>Proposed Milestones
134134
{% if user|has_role:"Area Director,Secretariat" %}
135-
<a class="edit" href="{% url "wg_edit_charter_milestones" acronym=doc.group.acronym %}">Edit charter milestones</a>
135+
<a class="edit" href="{% url "group_edit_charter_milestones" group_type=doc.group.type_id acronym=doc.group.acronym %}">Edit charter milestones</a>
136136
{% endif %}
137137
</h3>
138138

ietf/templates/iesg/milestones_needing_review.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h3 class="ad">{{ ad.plain_name }}</h4>
1515

1616
{% for g in ad.groups_needing_review %}
1717

18-
<div class="milestones-for-group">{{ g.name }} ({{ g.acronym }}) <a href="{% url "wg_edit_milestones" acronym=g.acronym %}">has new milestones</a>:</div>
18+
<div class="milestones-for-group">{{ g.name }} ({{ g.acronym }}) <a href="{% url "group_edit_milestones" group_type=g.type_id acronym=g.acronym %}">has new milestones</a>:</div>
1919

2020
{% include "wginfo/milestones.html" with milestones=g.milestones_needing_review %}
2121

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{% extends "base.html" %}
2+
3+
{% block title %}Active IRTF Research Groups{% endblock %}
4+
5+
{% block morecss %}
6+
.ietf-wg-table { width: 100%; max-width:50em; }
7+
.ietf-wg-table tr { vertical-align:top; }
8+
{% endblock morecss %}
9+
10+
{% block content %}
11+
<h1>Active IRTF Research Groups</h1>
12+
13+
<p>IRTF Chair:</p>
14+
15+
<div style="margin-left:2em;">
16+
<a href="mailto:irtf-chair@irtf.org">{{ irtf.chair.person.plain_name }}</a>
17+
</div>
18+
19+
<p>Active Research Groups:</p>
20+
21+
<div style="margin-left:2em;">
22+
<table class="ietf-wg-table">
23+
{% for group in groups %}
24+
<tr>
25+
<td width="10%;"><a href="{% url "ietf.wginfo.views.group_documents" group_type=group.type_id acronym=group.acronym %}">{{ group.acronym }}</a></td>
26+
<td width="50%">{{ group.name }}</td>
27+
<td width="40%">{% for chair in group.chairs %}<a href="mailto:{{ chair.email.address }}">{{ chair.person.plain_name }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</td>
28+
</tr>
29+
{% endfor %}
30+
</table>
31+
</div>
32+
33+
{% endblock %}

ietf/templates/wginfo/active_wgs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ <h2 class="ietf-divider" id="{{area.name|cut:" "}}">{{ area.name }}</h2>
8080
<table class="ietf-wg-table">
8181
{% for group in area.groups %}
8282
<tr>
83-
<td width="10%;"><a href="/wg/{{ group.acronym }}/">{{ group.acronym }}</a></td>
83+
<td width="10%;"><a href="{% url "ietf.wginfo.views.group_documents" group_type=group.type_id acronym=group.acronym %}">{{ group.acronym }}</a></td>
8484
<td width="1%">{% for ad in area.ads %}{% if ad.person_id == group.ad_id %}<span title="AD for {{ group.acronym }}: {{ ad.person }}" class="square bgcolor{{forloop.counter}}"></span>{% endif %}{% endfor %}</td>
8585
<td width="50%">{{ group.name }}</td>
8686
<td width="39%">{% for chair in group.chairs %}<a href="mailto:{{ chair.email.address }}">{{ chair.person.plain_name }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</td>

ietf/templates/wginfo/bofs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h1>Bofs</h1>
1010
<p>Groups in the BoF state</p>
1111

1212
{% if user|has_role:"Area Director,Secretariat" %}
13-
<p><a href="{% url "bof_create" %}">Create a new BoF</a></p>
13+
<p><a href="{% url "bof_create" group_type="wg" %}">Create a new BoF</a></p>
1414
{% endif %}
1515

1616
{% if not groups %}
@@ -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 "group_charter" acronym=g.acronym %}">{{ g.acronym }}</a>
28+
<a href="{% url "group_charter" group_type=g.type_id 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h1>Chartering or Re-Chartering Working Groups</h1>
1212
{% for s in charter_states %}{% if not forloop.first %}, {% if forloop.last %}or {% endif %}{% endif %}<i>{{ s.name }}</i>{% endfor %}.</p>
1313

1414
{% if user|has_role:"Area Director,Secretariat" %}
15-
<p><a href="{% url "wg_create" %}">Start chartering new WG</a></p>
15+
<p><a href="{% url "group_create" group_type="wg" %}">Start chartering new WG</a></p>
1616
{% endif %}
1717

1818
{% if not groups %}
@@ -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 "group_charter" acronym=g.acronym %}">{{ g.acronym }}</a>
31+
<a href="{% url "group_charter" group_type=g.type_id 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends "base.html" %}
22

3-
{% block title %}Request closing of {{ wg.acronym }} {{ wg.type.name }}{% endblock %}
3+
{% block title %}Request closing of {{ group.acronym }} {{ group.type.name }}{% endblock %}
44

55
{% block morecss %}
66
#id_instructions {
@@ -14,7 +14,7 @@
1414
{% endblock %}
1515

1616
{% block content %}
17-
<h1>Request closing of {{ wg.acronym }} {{ wg.type.name }}</h1>
17+
<h1>Request closing of {{ group.acronym }} {{ group.type.name }}</h1>
1818

1919
<p>
2020
Please provide instructions regarding the disposition of each
@@ -29,7 +29,7 @@ <h1>Request closing of {{ wg.acronym }} {{ wg.type.name }}</h1>
2929
{{ form.as_table }}
3030
<tr>
3131
<td colspan="2" class="actions">
32-
<a class="button" href="{% url "group_charter" acronym=wg.acronym %}">Cancel</a>
32+
<a class="button" href="{% url "group_charter" group_type=group.type_id acronym=group.acronym %}">Cancel</a>
3333
<input class="button" type="submit" value="Send request"/>
3434
</td>
3535
</tr>

0 commit comments

Comments
 (0)