Skip to content

Commit 839df60

Browse files
committed
Merged in charter branch fixes from olau@iola.dk, from r4354 through r4381.
- Legacy-Id: 4382
2 parents 741b859 + 3ec4dff commit 839df60

18 files changed

Lines changed: 147 additions & 71 deletions

ietf/doc/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def augment_with_start_time(docs):
136136
def get_chartering_type(doc):
137137
chartering = ""
138138
if doc.get_state_slug() not in ("notrev", "approved"):
139-
if doc.group.state_id == "proposed":
139+
if doc.group.state_id in ("proposed", "bof"):
140140
chartering = "initial"
141141
elif doc.group.state_id == "active":
142142
chartering = "rechartering"

ietf/idrfc/urls.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
from django.conf.urls.defaults import patterns, url, include
3434
from ietf.idrfc import views_doc, views_search, views_edit, views_ballot, views
35+
from ietf.doc.models import State
3536

3637
urlpatterns = patterns('',
3738
(r'^/?$', views_search.search_main),
@@ -69,3 +70,9 @@
6970

7071
(r'^(?P<name>[A-Za-z0-9.-]+)/charter/', include('ietf.wgcharter.urls')),
7172
)
73+
74+
urlpatterns += patterns('django.views.generic.simple',
75+
url(r'^help/state/charter/$', 'direct_to_template', { 'template': 'wgcharter/states.html', 'extra_context': { 'states': State.objects.filter(type="charter") } }, name='help_charter_states'),
76+
)
77+
78+

ietf/idrfc/views_ballot.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,11 @@ def send_ballot_commentREDESIGN(request, name, ballot_id):
475475

476476
subj = []
477477
d = ""
478+
blocking_name = "DISCUSS"
478479
if pos.pos.blocking and pos.discuss:
479480
d = pos.discuss
480-
subj.append(pos.pos.name.upper())
481+
blocking_name = pos.pos.name.upper()
482+
subj.append(blocking_name)
481483
c = ""
482484
if pos.comment:
483485
c = pos.comment
@@ -488,10 +490,13 @@ def send_ballot_commentREDESIGN(request, name, ballot_id):
488490
if subj:
489491
subject += ": (with %s)" % " and ".join(subj)
490492

491-
doc.filename = doc.name # compatibility attributes
492-
doc.revision_display = doc.rev
493493
body = render_to_string("idrfc/ballot_comment_mail.txt",
494-
dict(discuss=d, comment=c, ad=ad.plain_name(), doc=doc, pos=pos.pos))
494+
dict(discuss=d,
495+
comment=c,
496+
ad=ad.plain_name(),
497+
doc=doc,
498+
pos=pos.pos,
499+
blocking_name=blocking_name,))
495500
frm = ad.role_email("ad").formatted_email()
496501
to = "The IESG <iesg@ietf.org>"
497502

ietf/templates/idrfc/ballot_comment_mail.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
{% autoescape off %}{{ ad }} has entered the following ballot position for
2-
{{ doc.filename }}-{{ doc.revision_display }}: {{ pos.name }}
2+
{{ doc.name }}-{{ doc.rev }}: {{ pos.name }}
33

44
When responding, please keep the subject line intact and reply to all
55
email addresses included in the To and CC lines. (Feel free to cut this
66
introductory paragraph, however.)
77

8+
{% if doc.type_id == "draft" %}
89
Please refer to http://www.ietf.org/iesg/statement/discuss-criteria.html
910
for more information about IESG DISCUSS and COMMENT positions.
11+
{% endif %}
1012

1113
{% if not discuss and not comment %}
12-
There is no DISCUSS or COMMENT text associated with this position.
14+
There are no remarks associated with this position.
1315
{% endif %}
1416

1517
{% if discuss %}----------------------------------------------------------------------
16-
DISCUSS:
18+
{{ blocking_name }}:
1719
----------------------------------------------------------------------
1820

1921
{{ discuss|safe|wordwrap:73 }}

ietf/templates/idrfc/document_charter.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<td>{{ group.state.name }}</td>
3535
</tr>
3636
<tr>
37-
<td><a href="/wgcharter/help/state/">Charter State</a>:</td>
37+
<td><a href="/doc/help/state/charter/">Charter State</a>:</td>
3838
<td>
3939
<div>
4040
<a title="{{ doc.get_state.desc }}"{% if not snapshot and user|has_role:"Area Director,Secretariat" %} href="{% url charter_change_state name=doc.name %}"{% endif %}>{{ doc.get_state.name }}</a>
@@ -52,7 +52,11 @@
5252
{% endif %}
5353

5454
{% else %}
55-
- <a href="{% url charter_startstop_process name=doc.name option='recharter' %}">Recharter</a>
55+
{% if group.state_id == "proposed" or group.state_id == "bof" %}
56+
- <a href="{% url charter_startstop_process name=doc.name option='initcharter' %}">Charter</a>
57+
{% else %}
58+
- <a href="{% url charter_startstop_process name=doc.name option='recharter' %}">Recharter</a>
59+
{% endif %}
5660
{% endif %}
5761

5862
{% endif %}
@@ -101,7 +105,7 @@
101105

102106
<h3>Charter {{ doc.canonical_name }}-{{ doc.rev }}
103107

104-
{% if user|has_role:"Area Director,Secretariat" and chartering and group.state_id != "conclude" %}
108+
{% if not snapshot and user|has_role:"Area Director,Secretariat" and chartering and group.state_id != "conclude" %}
105109
<a class="edit" href="{% url charter_submit name=doc.name %}">Change charter text</a>
106110
{% endif %}
107111
</h3>

ietf/templates/idrfc/document_history.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{% block content %}
1212
{{ top|safe }}
1313

14-
{% if diff_revisions %}
14+
{% if diff_revisions and diff_revisions|length > 1 %}
1515
<div class="ietf-box diffTool">
1616
<h2>Diffs</h2>
1717

ietf/templates/idrfc/document_writeup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div class="writeup">
1414
<h2>{{ title }}</h2>
1515

16-
{% if can_edit %}<a href="{{ url }}" class="edit">Edit {{ title }}</a>{% endif %}
16+
{% if can_edit %}<a href="{{ url }}" class="edit">{% if text %}Edit{% else %}Generate{% endif %} {{ title }}</a>{% endif %}
1717

1818
<pre {% if can_edit %}class="editable"{% endif %}>
1919
{{ text }}

ietf/templates/wgcharter/action_text.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
To: IETF-Announce <ietf-announce@ietf.org>
33
Subject: WG Action: {{ action_type }} {{ wg.name }} ({{ wg.acronym }})
44

5-
{% filter wordwrap:73 %}{% ifequal action_type "Formed" %}A new IETF working group has been formed in the {{ wg.parent.name }}.{% endifequal %}{% ifequal action_type "Rechartered" %}The {{ wg.name }} ({{ wg.acronym }}) working group in the {{ wg.parent.name }} of the IETF has been rechartered.{% endifequal %} For additional information please contact the Area Directors or the WG Chair.
5+
{% filter wordwrap:73 %}{% ifequal action_type "Formed" %}A new IETF working group has been formed in the {{ wg.parent.name }}.{% endifequal %}{% ifequal action_type "Rechartered" %}The {{ wg.name }} ({{ wg.acronym }}) working group in the {{ wg.parent.name }} of the IETF has been rechartered.{% endifequal %} For additional information please contact the Area Directors or the WG Chair{{ chairs|pluralize}}.
66

77
{% include "wgcharter/wg_info.txt" %}
88

ietf/templates/wgcharter/ballot_writeupnotes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h1>Ballot writeup and notes for {{ charter.chartered_group }}</h1>
2222
<div class="actions">
2323
<a href="{% url doc_writeup name=charter.name %}">Back</a>
2424
<input type="submit" name="save_ballot_writeup" value="Save Ballot Writeup" />
25-
<input style="margin-left: 8px" type="submit" name="issue_ballot" value="Save and {% if reissue %}Re-{% endif %}Issue Ballot" />
25+
<input style="margin-left: 8px" type="submit" name="send_ballot" value="Save and {% if reissue %}Re-{% endif %}Send Ballot to the IESG" />
2626
</div>
2727
</form>
2828

ietf/templates/wgcharter/change_state.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h1>{{ title }}</h1>
4848
{{ field.errors }}
4949
</td>
5050
</tr>
51-
{% if field.name == "charter_state" and not option == "initcharter" %}
51+
{% if field.name == "charter_state" and chartering_type == "rechartering" %}
5252
<tr class="ballot-wo-extern" style="display:none">
5353
<td></td>
5454
<td><label><input name="ballot_wo_extern" type="checkbox" /> Ask whether external review can be skipped in ballot</label></td>
@@ -64,7 +64,7 @@ <h1>{{ title }}</h1>
6464
<input type="submit" value="Submit"/>
6565
{% else %}
6666
<a href="{% url doc_view name=doc.name %}">Back</a>
67-
<input type="submit" value="Save"/>
67+
<input type="submit" value="Save and (possibly) notify Secretariat"/>
6868
{% endif %}
6969
</td>
7070
</tr>

0 commit comments

Comments
 (0)