Skip to content

Commit 2a85572

Browse files
committed
Add status-change to state_help framework, remove last traces of former framework
- Legacy-Id: 6057
1 parent 0b1aabc commit 2a85572

6 files changed

Lines changed: 6 additions & 12 deletions

File tree

ietf/doc/urls.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,3 @@
9898
(r'^(?P<name>[A-Za-z0-9._+-]+)/conflict-review/', include('ietf.doc.urls_conflict_review')),
9999
(r'^(?P<name>[A-Za-z0-9._+-]+)/status-change/', include('ietf.doc.urls_status_change')),
100100
)
101-
102-
urlpatterns += patterns('django.views.generic.simple',
103-
url(r'^help/state/charter/$', 'direct_to_template', { 'template': 'doc/states.html', 'extra_context': { 'states': State.objects.filter(used=True, type="charter"),'title':"Charter" } }, name='help_charter_states'),
104-
url(r'^help/state/conflict-review/$', 'direct_to_template', { 'template': 'doc/states.html', 'extra_context': { 'states': State.objects.filter(used=True, type="conflrev").order_by("order"),'title':"Conflict Review" } }, name='help_conflict_review_states'),
105-
url(r'^help/state/status-change/$', 'direct_to_template', { 'template': 'doc/states.html', 'extra_context': { 'states': State.objects.filter(type="statchg").order_by("order"),'title':"RFC Status Change" } }, name='help_status_change_states'),
106-
)
107-

ietf/doc/views_conflict_review.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def change_state(request, name, option=None):
8787
dict(form=form,
8888
doc=review,
8989
login=login,
90-
help_url=reverse('help_conflict_review_states'),
90+
help_url=reverse('state_help', kwargs=dict(type="conflict-review")),
9191
),
9292
context_instance=RequestContext(request))
9393

ietf/doc/views_help.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ def state_help(request, type):
1010
"draft-rfceditor": ("draft-rfceditor", "RFC Editor States For Internet-Drafts"),
1111
"draft-iana-action": ("draft-iana-action", "IANA Action States For Internet-Drafts"),
1212
"charter": ("charter", "Charter States"),
13-
"conflict-review": ("conflrev", "Conflict Review States")
13+
"conflict-review": ("conflrev", "Conflict Review States"),
14+
"status-change": ("statchg", "RFC Status Change States"),
1415
}.get(type, (None, None))
1516
state_type = get_object_or_404(StateType, slug=slug)
1617

ietf/doc/views_status_change.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def change_state(request, name, option=None):
9393
dict(form=form,
9494
doc=status_change,
9595
login=login,
96-
help_url=reverse('help_status_change_states')
96+
help_url=reverse('state_help', kwargs=dict(type="status-change")),
9797
),
9898
context_instance=RequestContext(request))
9999

ietf/templates/doc/document_status_change.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</tr>
3737
{% endfor %}
3838
<tr>
39-
<td><a href="/doc/help/state/status-change/">Review State</a>:</td>
39+
<td><a href="{% url state_help type="status-change" %}">Review State</a>:</td>
4040
<td>
4141
<div>
4242
<a title="{{ doc.get_state.desc }}"{% if not snapshot and user|has_role:"Area Director,Secretariat" %} class="editlink" href="{% url status_change_change_state name=doc.name %}"{% endif %}>{{ doc.get_state.name }}</a>

ietf/templates/doc/status_change/start.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
{% block content %}
2929
<h1>Begin RFC status change review</h1>
3030

31-
<p class="helptext">For help on the initial state choice, see the <a href="{% url help_status_change_states %}">state table</a>.</p>
31+
<p class="helptext">For help on the initial state choice, see the <a href="{% url state_help type="status-change" %}">state table</a>.</p>
3232

3333
<form class="start-rfc-status-change-review" action="" method="post">
3434
<table>

0 commit comments

Comments
 (0)