diff --git a/ietf/iesg/views.py b/ietf/iesg/views.py
index 1867a8bf1..1f7df399e 100644
--- a/ietf/iesg/views.py
+++ b/ietf/iesg/views.py
@@ -208,6 +208,19 @@ def get_doc_sectionREDESIGN(id):
s = s + "1"
return s
+def get_wg_section(wg):
+ if wg.state_id == "proposed":
+ if wg.charter.charter_state_id == "intrev":
+ s = '411'
+ elif wg.charter.charter_state_id == "iesgrev":
+ s = '412'
+ elif wg.state_id == "active":
+ if wg.charter.charter_state_id == "intrev":
+ s = '421'
+ elif wg.charter.charter_state_id == "iesgrev":
+ s = '422'
+ return s
+
if settings.USE_DB_REDESIGN_PROXY_CLASSES:
get_doc_section = get_doc_sectionREDESIGN
@@ -253,15 +266,17 @@ def agenda_docs(date, next_agenda):
return res
def agenda_wg_actions(date):
- mapping = {12:'411', 13:'412',22:'421',23:'422'}
- matches = WGAction.objects.filter(agenda=1,telechat_date=date,category__in=mapping.keys()).order_by('category')
- res = {}
- for o in matches:
- section_key = "s"+mapping[o.category]
+ from doc.models import TelechatDocEvent
+ from group.models import Group
+
+ matches = Group.objects.filter(charter__docevent__telechatdocevent__telechat_date=date)
+
+ res = dict(("s%s%s%s" % (i, j, k), []) for i in range(2, 5) for j in range (1, 4) for k in range(1, 4))
+ for wg in list(matches):
+ section_key = "s"+get_wg_section(wg)
if section_key not in res:
res[section_key] = []
- area = AreaGroup.objects.get(group=o.group_acronym)
- res[section_key].append({'obj':o, 'area':str(area.area)})
+ res[section_key].append({'obj':wg})
return res
def agenda_management_issues(date):
diff --git a/ietf/templates/iesg/agenda_wg.html b/ietf/templates/iesg/agenda_wg.html
index 9d6edc402..1d7025a70 100644
--- a/ietf/templates/iesg/agenda_wg.html
+++ b/ietf/templates/iesg/agenda_wg.html
@@ -43,20 +43,14 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
{% endif %}
-{% endif %}
{% if forloop.last %}
diff --git a/ietf/templates/iesg/agenda_wg.txt b/ietf/templates/iesg/agenda_wg.txt
index fa1d09a62..3d444ec2d 100644
--- a/ietf/templates/iesg/agenda_wg.txt
+++ b/ietf/templates/iesg/agenda_wg.txt
@@ -35,11 +35,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
{{ title2 }}
{% endif %}{{ title3 }}
{% for wg in section_wgs %}
- o {{ wg.obj.group_acronym.name }} ({{wg.obj.group_acronym}})
-{% if wg.obj.token_name %} Token: {{ wg.obj.token_name }}
-{% endif %}
-{% if wg.obj.note %} {% filter wordwrap:"68"|indent|indent %}Note: {{wg.obj.note|striptags}}{% endfilter %}
-{% endif %}
+ o {{ wg.obj.name }} ({{wg.obj.acronym}})
{% empty %}
NONE
{% endfor %}
diff --git a/ietf/templates/iesg/moderator_wg.html b/ietf/templates/iesg/moderator_wg.html
index 14a4565af..36c02c0ea 100644
--- a/ietf/templates/iesg/moderator_wg.html
+++ b/ietf/templates/iesg/moderator_wg.html
@@ -36,14 +36,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
{{ title2 }}
{{ title3 }} ({{ forloop.counter }} of {{ section_wgs|length }})
-
-{% endif %}
{% endblock%}
diff --git a/ietf/templates/wgrecord/ballot_comment_mail.txt b/ietf/templates/wgrecord/ballot_comment_mail.txt
index 582fbd081..748bf328f 100644
--- a/ietf/templates/wgrecord/ballot_comment_mail.txt
+++ b/ietf/templates/wgrecord/ballot_comment_mail.txt
@@ -1,5 +1,5 @@
{% autoescape off %}{{ ad }} has entered the following ballot position for
-{{ doc.filename }}-{{ doc.revision_display }}: {{ pos.name }}
+{{ charter.name }}-{{ charter.rev }}: {{ pos.name }}
When responding, please keep the subject line intact and reply to all
email addresses included in the To and CC lines. (Feel free to cut this
diff --git a/ietf/templates/wgrecord/ballot_issued.html b/ietf/templates/wgrecord/ballot_issued.html
deleted file mode 100644
index 45a8464e3..000000000
--- a/ietf/templates/wgrecord/ballot_issued.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}Ballot for {{ doc }} issued{% endblock %}
-
-{% block content %}
-