Skip to content

Commit 76c326e

Browse files
committed
Merged in support for list of WG email archives, at '/list/wg/', from Chris Newman <[email protected]>
- Legacy-Id: 1229
1 parent b040a41 commit 76c326e

File tree

4 files changed

+44
-2
lines changed

4 files changed

+44
-2
lines changed

ietf/mailinglists/urls.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515
(r'^request/$', views.list_req_wizard),
1616
(r'^help/(?P<field>[^/]+)/$', views.list_req_help),
1717
(r'^approve/(?P<object_id>[^/]+)/$', views.list_approve),
18+
(r'^wg/$', views.list_wgwebmail),
1819
)

ietf/mailinglists/views.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from forms import NonWgStep1, ListReqStep1, PickApprover, DeletionPickApprover, UrlMultiWidget, Preview, ListReqAuthorized, ListReqClose, MultiEmailField, AdminRequestor, ApprovalComment, ListApprover
44
from models import NonWgMailingList, MailingList, Domain
5-
from ietf.idtracker.models import Area, PersonOrOrgInfo, AreaDirector, WGChair, Role
5+
from ietf.idtracker.models import Area, PersonOrOrgInfo, AreaDirector, WGChair, Role, IETFWG
66
from django import newforms as forms
77
from django.shortcuts import get_object_or_404, render_to_response
88
from django.template import RequestContext
@@ -350,3 +350,7 @@ def list_approve(request, object_id):
350350
form = ApprovalComment()
351351
return render_to_response('mailinglists/list_%s.html' % action, {'list': list, 'form': form, 'req': req},
352352
context_instance=RequestContext(request) )
353+
354+
def list_wgwebmail(request):
355+
wgs = IETFWG.objects.filter(email_archive__startswith='http')
356+
return render_to_response('mailinglists/wgwebmail_list.html', {'object_list': wgs})

ietf/templates/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
|
4545
<a href="/accounts/logout/">Log Out</a></span>
4646
{% endif %}
47-
<hr>
47+
<hr/>
4848
<!-- end new headers and layout -->
4949
<div id="content">
5050
{% block content %}{% endblock %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{% extends "base.html" %}
2+
{# Copyright The IETF Trust 2008, All Rights Reserved #}
3+
4+
{% block title %}Web-based Working Group E-mail Archives{% endblock %}
5+
6+
{% block content %}
7+
<center><font size=+2>Web-based Working Group E-mail Archives</font></center>
8+
<br/>
9+
<p>These links to the Web-based working group e-mail archives are
10+
extracted from the working group charters. Please consult the
11+
charters for more information about the mailing lists and archives
12+
of specific working groups. Charters for active working groups are
13+
available on
14+
the <a href="http://www.ietf.org/html.charters/wg-dir.html">Active
15+
IETF Working Groups</a> Web page. Charters for concluded working
16+
groups are available on
17+
the <a href="http://www.ietf.org/html.charters/OLD/index.html">Concluded
18+
Working Groups</a> Web page.</p>
19+
<br/>
20+
<blockquote>
21+
<table cellpadding="4" cellspacing="0" border="0">
22+
<colgroup align="center">
23+
<col width="20%"/>
24+
<col width="80%"/>
25+
</colgroup>
26+
<tr>
27+
<th>Acronym</th><th>Name</th>
28+
</tr>
29+
{% for wg in object_list|dictsort:"group_acronym.acronym" %}
30+
<tr>
31+
<td><a href="{{ wg.email_archive|escape }}">{{ wg|escape }}</a></td>
32+
<td>{{ wg.group_acronym.name|escape }}</td>
33+
</tr>
34+
{% endfor %}
35+
</table>
36+
</blockquote>
37+
{% endblock %}

0 commit comments

Comments
 (0)