Skip to content

Commit b73c535

Browse files
author
Martin Qvist
committed
Added corrections and tests as discussed with Ole.
- Legacy-Id: 3349
1 parent 0a34a90 commit b73c535

33 files changed

Lines changed: 587 additions & 142 deletions

ietf/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@
177177
INTERNET_DRAFT_PATH = '/a/www/ietf-ftp/internet-drafts/'
178178
INTERNET_DRAFT_PDF_PATH = '/a/www/ietf-datatracker/pdf/'
179179
RFC_PATH = '/a/www/ietf-ftp/rfc/'
180+
CHARTER_PATH = '/a/www/ietf-ftp/charters/'
181+
CHARTER_TXT_URL = 'http://www.ietf.org/charters/'
180182
AGENDA_PATH = '/a/www/www6s/proceedings/'
181183
AGENDA_PATH_PATTERN = '/a/www/www6s/proceedings/%(meeting)s/agenda/%(wg)s.%(ext)s'
182184
MINUTES_PATH_PATTERN = '/a/www/www6s/proceedings/%(meeting)s/minutes/%(wg)s.%(ext)s'

ietf/templates/wgrecord/add_comment.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h1>Add comment on {{ wg.acronym }}</h1>
2727
<tr>
2828
<td></td>
2929
<td class="actions">
30-
<a href="{% url record_view name=wg.acronym %}">Back</a>
30+
<a href="{% url wg_view_record name=wg.acronym %}">Back</a>
3131
<input type="submit" value="Add comment"/>
3232
</td>
3333
</tr>

ietf/templates/wgrecord/approve_ballot.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h1>Approve Ballot for {{ wg.acronym }}</h1>
3030
</div>
3131

3232
<div class="actions">
33-
<a href="{% url record_view name=wg.acronym %}">Back</a>
33+
<a href="{% url wg_view_record name=wg.acronym %}">Back</a>
3434
<input type="submit" value="Send out the announcement, close ballot and update revision"/>
3535
</div>
3636
</form>

ietf/templates/wgrecord/change_state.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h1>Change state of {{ wg.acronym }}</h1>
4343
{% endfor %}
4444
<tr>
4545
<td colspan="2" class="actions">
46-
<a href="{% url record_view name=wg.acronym %}">Back</a>
46+
<a href="{% url wg_view_record name=wg.acronym %}">Back</a>
4747
<input type="submit" value="Save"/>
4848
</td>
4949
</tr>
@@ -68,10 +68,9 @@ <h3>Or revert to previous state</h3>
6868
var message = {
6969
"infrev": "The WG {{ wg.name }} ({{ wg.acronym }}) has been set to Informal IESG review by {{ login.name }}",
7070
"intrev": "The WG {{ wg.name }} ({{ wg.acronym }}) has been set to Internal review by {{ login.name }}. Please place it on the next IESG telechat and inform the IAB.",
71-
"extrev": "The WG {{ wg.name }} ({{ wg.acronym }}) has been set to External review by {{ login.name }}. Please send out the external review announcement to the appropriate lists.\n\nSend the announcement to other SDOs: Yes\nAdditional recipients of the announcement: ",
72-
"approved": "The WG {{ wg.name }} ({{ wg.acronym }}) has been approved. Please publish the charter and sent the appropriate announcements."
71+
"extrev": "The WG {{ wg.name }} ({{ wg.acronym }}) has been set to External review by {{ login.name }}. Please send out the external review announcement to the appropriate lists.\n\nSend the announcement to other SDOs: Yes\nAdditional recipients of the announcement: "
7372
};
7473

7574
</script>
76-
<script type="text/javascript" src="/js/rec-change-state.js"></script>
75+
<script type="text/javascript" src="/js/wg-change-state.js"></script>
7776
{% endblock %}

ietf/templates/wgrecord/conclude.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% block title %}Request closing of WG {{ wg.acronym }}{% endblock %}
44

55
{% block morecss %}
6-
#id_comment {
6+
#id_instructions {
77
width: 40em;
88
}
99

@@ -28,7 +28,7 @@ <h1>Request closing of {{ wg.acronym }}</h1>
2828
{{ form.as_table }}
2929
<tr>
3030
<td colspan="2" class="actions">
31-
<a href="{% url record_view name=wg.acronym %}">Back</a>
31+
<a href="{% url wg_view_record name=wg.acronym %}">Back</a>
3232
<input type="submit" value="Send request"/>
3333
</td>
3434
</tr>

ietf/templates/wgrecord/edit_info.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ <h1>{% if wg %}
7878
<td></td>
7979
<td class="actions">
8080
{% if wg %}
81-
<a href="{% url record_view name=wg.acronym %}">Back</a>
81+
<a href="{% url wg_view_record name=wg.acronym %}">Back</a>
8282
{% endif %}
8383
<input type="submit" value="Save"/>
8484
</td>

ietf/templates/wgrecord/edit_position.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,5 @@ <h1>Change position for {{ ad.name }} on {{ wg.acronym }}</h1>
7171
{% endblock %}
7272

7373
{% block content_end %}
74-
<script type="text/javascript" src="/js/rec-edit-position.js"></script>
74+
<script type="text/javascript" src="/js/wg-edit-position.js"></script>
7575
{% endblock %}

ietf/templates/wgrecord/record_ballot.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
{% if user|in_group:"Area_Director,Secretariat" %}
88
{% if user|in_group:"Area_Director" %}
9-
<div style="margin-top:8px; margin-bottom:8px;"><span id="rec_ballot_button" class="yui-button yui-link-button"><span class="first-child"><a href="{% url rec_edit_position name=wg.acronym %}">Edit position</a></span></span></div>
9+
<div style="margin-top:8px; margin-bottom:8px;"><span id="wg_ballot_button" class="yui-button yui-link-button"><span class="first-child"><a href="{% url wg_edit_position name=wg.acronym %}">Edit position</a></span></span></div>
1010
{% endif %}
1111
{% if user|in_group:"Secretariat" %}
12-
<div style="margin-top:8px; margin-bottom:8px;"><span id="rec_ballot_button" class="yui-button yui-link-button"><span class="first-child"><a href="{% url rec_approve_ballot name=wg.acronym %}">Approve ballot</a></span></span></div>
12+
<div style="margin-top:8px; margin-bottom:8px;"><span id="wg_ballot_button" class="yui-button yui-link-button"><span class="first-child"><a href="{% url wg_approve_ballot name=wg.acronym %}">Approve ballot</a></span></span></div>
1313
{% endif %}
1414
{% endif %}
1515

@@ -27,7 +27,7 @@
2727

2828
<p><span class="square" style="background:white;"></span><b>No Record</b><br/>
2929
{% for p in info.pos_no_record %}
30-
<a{% if user|in_group:"Secretariat" %} href="{% url rec_edit_position name=wg.acronym %}?ad={{ p.id }}" title="Click to edit the position of {{ p.name }}"{% endif %}>{{p.name}}</a><br/>
30+
<a{% if user|in_group:"Secretariat" %} href="{% url wg_edit_position name=wg.acronym %}?ad={{ p.id }}" title="Click to edit the position of {{ p.name }}"{% endif %}>{{p.name}}{% if user|in_group:"Secretariat" %}</a>{% endif %}<br/>
3131
{% empty %}
3232
<i>none</i>
3333
{% endfor %}

ietf/templates/wgrecord/record_ballot_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% load ietf_filters %}
22
{% for p in positions %}
3-
{% if p.is_old_ad %}[{%endif%}<a{% if user|in_group:"Secretariat" %} href="{% url rec_edit_position name=wg.acronym %}?ad={{ p.ad_id }}" title="Click to edit the position of {{ p.ad }}"{% endif %}>{{p.ad}}</a>{% if p.is_old_ad %}]{%endif%}{% if p.comment or p.block_comment %}&nbsp;<a href="#{{p.ad|slugify}}"><img src="/images/comment.png" width="14" height="12" alt="*" border="0"/></a>{% endif %}<br/>
3+
{% if p.is_old_ad %}[{%endif%}<a{% if user|in_group:"Secretariat" %} href="{% url wg_edit_position name=wg.acronym %}?ad={{ p.ad_id }}" title="Click to edit the position of {{ p.ad }}"{% endif %}>{{p.ad}}</a>{% if p.is_old_ad %}]{%endif%}{% if p.comment or p.block_comment %}&nbsp;<a href="#{{p.ad|slugify}}"><img src="/images/comment.png" width="14" height="12" alt="*" border="0"/></a>{% endif %}<br/>
44
{% if p.old_positions %}<span class="was">(was {{p.old_positions|join:", "}})</span><br/>{%endif%}
55
{% empty %}
66
<i>none</i>

ietf/templates/wgrecord/record_tab_charter.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{% load ietf_filters %}
88

99
{% block record_revision %}
10-
Snapshots: {% if not snapshot %}<strong>{% else %}<a href="{% url record_view name=wg.acronym %}">{% endif %}current{% if not snapshot %}</strong>{% else %}</a>{% endif %} {% for d in versions reversed %}{% ifnotequal d.rev wg.charter.rev %}{% ifequal snapshot d.rev %}<strong>{% else %}<a href="{% url record_view name=wg.acronym %}{{d.rev}}/">{% endifequal %}{{ d.rev }}{% ifequal snapshot d.rev %}</strong>{% else %}</a>{% endifequal %} {% endifnotequal %}{% endfor %}
10+
Snapshots: {% if not snapshot %}<strong>{% else %}<a href="{% url wg_view_record name=wg.acronym %}">{% endif %}current{% if not snapshot %}</strong>{% else %}</a>{% endif %} {% for d in versions reversed %}{% ifnotequal d.rev wg.charter.rev %}{% ifequal snapshot d.rev %}<strong>{% else %}<a href="{% url wg_view_record name=wg.acronym %}{{d.rev}}/">{% endifequal %}{{ d.rev }}{% ifequal snapshot d.rev %}</strong>{% else %}</a>{% endifequal %} {% endifnotequal %}{% endfor %}
1111
{% endblock %}
1212

1313
{% block record_metatable %}

0 commit comments

Comments
 (0)