Skip to content

Commit e1134da

Browse files
committed
This commit fixes tickets ietf-tools#526 and ietf-tools#530.
Specifically, it changes the format of the notification email sent out when an AD posts a ballot position on a draft, it by default CCs that email to the authors and chairs, and adds some explanatory text to the body of those messages. - Legacy-Id: 2607
1 parent 58682a6 commit e1134da

3 files changed

Lines changed: 28 additions & 8 deletions

File tree

lars/ietf/idrfc/views_ballot.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,13 @@ def send_ballot_comment(request, name):
228228
c = comment.text
229229
subj.append("COMMENT")
230230

231-
subject = "%s: %s" % (" and ".join(subj), doc.file_tag())
231+
ad_name = str(ad)
232+
ad_name_genitive = ad_name + "'" if ad_name.endswith('s') else ad_name + "'s"
233+
subject = "%s %s on %s" % (ad_name_genitive, " and ".join(subj), doc.filename + '-' + doc.revision_display())
232234
body = render_to_string("idrfc/ballot_comment_mail.txt",
233-
dict(discuss=d, comment=c))
235+
dict(discuss=d, comment=c, ad=ad, doc=doc))
234236
frm = u"%s <%s>" % ad.person.email()
235-
to = "iesg@ietf.org"
237+
to = "The IESG <iesg@ietf.org>"
236238

237239
if request.method == 'POST':
238240
cc = [x.strip() for x in request.POST.get("cc", "").split(',') if x.strip()]
Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
1-
{% if discuss %}Discuss:
1+
{{ ad }} has entered the following ballot position for
2+
{{ doc.filename }}-{{ doc.revision_display }}.
3+
4+
When responding, please keep the subject line intact and reply to all
5+
email addresses included in the To and CC lines. (Feel free to cut this
6+
introductory paragraph, however.)
7+
8+
Please refer to http://www.ietf.org/iesg/statement/discuss-criteria.html
9+
for more information about IESG DISCUSS and COMMENT positions.
10+
11+
12+
{% if discuss %}----------------------------------------------------------------------
13+
DISCUSS:
14+
----------------------------------------------------------------------
15+
216
{{ discuss|safe }}
317

4-
{% endif %}{% if comment %}Comment:
18+
19+
{% endif %}{% if comment %}----------------------------------------------------------------------
20+
COMMENT:
21+
----------------------------------------------------------------------
22+
523
{{ comment|safe }}
624
{% endif %}

lars/ietf/templates/idrfc/send_ballot_comment.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 %}Email Discuss and Comment text for {{ ad }} to IESG list{% endblock %}
3+
{% block title %}Send ballot position email for {{ ad }}{% endblock %}
44

55
{% block morecss %}
66
form.send-ballot pre {
@@ -12,7 +12,7 @@
1212
{% endblock %}
1313

1414
{% block content %}
15-
<h1>Email Discuss and Comment text for {{ ad }} to IESG list</h1>
15+
<h1>Send ballot position email for {{ ad }}</h1>
1616

1717
<form class="send-ballot" action="" method="POST">
1818
<table>
@@ -24,7 +24,7 @@ <h1>Email Discuss and Comment text for {{ ad }} to IESG list</h1>
2424
<td><input type="text" name="cc" value="" size="75" /><br/>
2525
{% if doc.idinternal.state_change_notice_to %}
2626
<label>
27-
<input type="checkbox" name="cc_state_change" value="1" />
27+
<input type="checkbox" name="cc_state_change" value="1" checked="yes" />
2828
{{ doc.idinternal.state_change_notice_to }}
2929
</label>
3030
{% endif %}

0 commit comments

Comments
 (0)