Merged in support for list of WG email archives, at '/list/wg/', from Chris Newman <chris.newman@sun.com>

- Legacy-Id: 1229
This commit is contained in:
Henrik Levkowetz 2008-11-15 21:54:46 +00:00
parent b040a414d8
commit 76c326e87a
4 changed files with 44 additions and 2 deletions

View file

@ -15,4 +15,5 @@ urlpatterns += patterns('',
(r'^request/$', views.list_req_wizard),
(r'^help/(?P<field>[^/]+)/$', views.list_req_help),
(r'^approve/(?P<object_id>[^/]+)/$', views.list_approve),
(r'^wg/$', views.list_wgwebmail),
)

View file

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

View file

@ -44,7 +44,7 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
<a href="/accounts/logout/">Log Out</a></span>
{% endif %}
<hr>
<hr/>
<!-- end new headers and layout -->
<div id="content">
{% block content %}{% endblock %}

View file

@ -0,0 +1,37 @@
{% extends "base.html" %}
{# Copyright The IETF Trust 2008, All Rights Reserved #}
{% block title %}Web-based Working Group E-mail Archives{% endblock %}
{% block content %}
<center><font size=+2>Web-based Working Group E-mail Archives</font></center>
<br/>
<p>These links to the Web-based working group e-mail archives are
extracted from the working group charters. Please consult the
charters for more information about the mailing lists and archives
of specific working groups. Charters for active working groups are
available on
the <a href="http://www.ietf.org/html.charters/wg-dir.html">Active
IETF Working Groups</a> Web page. Charters for concluded working
groups are available on
the <a href="http://www.ietf.org/html.charters/OLD/index.html">Concluded
Working Groups</a> Web page.</p>
<br/>
<blockquote>
<table cellpadding="4" cellspacing="0" border="0">
<colgroup align="center">
<col width="20%"/>
<col width="80%"/>
</colgroup>
<tr>
<th>Acronym</th><th>Name</th>
</tr>
{% for wg in object_list|dictsort:"group_acronym.acronym" %}
<tr>
<td><a href="{{ wg.email_archive|escape }}">{{ wg|escape }}</a></td>
<td>{{ wg.group_acronym.name|escape }}</td>
</tr>
{% endfor %}
</table>
</blockquote>
{% endblock %}