Skip to content

Commit 5ba00a9

Browse files
committed
Move stream views to views_stream.py
- Legacy-Id: 6266
1 parent f0eddec commit 5ba00a9

6 files changed

Lines changed: 10 additions & 13 deletions

File tree

ietf/group/stream_urls.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@
22

33
from django.conf.urls.defaults import patterns, include
44

5-
import views
5+
import views_stream
66

77
urlpatterns = patterns('',
8-
(r'^$', views.streams),
9-
(r'^(?P<acronym>[a-zA-Z0-9-]+)/$', views.stream_documents, None),
10-
(r'^(?P<acronym>[a-zA-Z0-9-]+)/edit/$', views.stream_edit),
11-
# (r'^(?P<acronym>[a-zA-Z0-9-]+)/history/$', views.stream_history),
12-
# (r'^(?P<acronym>[a-zA-Z0-9-]+)/edit/$', views.stream_edit)
8+
(r'^$', views_stream.streams),
9+
(r'^(?P<acronym>[a-zA-Z0-9-]+)/$', views_stream.stream_documents, None),
10+
(r'^(?P<acronym>[a-zA-Z0-9-]+)/edit/$', views_stream.stream_edit),
1311
(r'^management/', include('ietf.ietfworkflows.urls')),
14-
1512
)

ietf/group/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_stream_edit(self):
2121

2222
stream_acronym = "ietf"
2323

24-
url = urlreverse("ietf.group.views.stream_edit", kwargs=dict(acronym=stream_acronym))
24+
url = urlreverse("ietf.group.views_stream.stream_edit", kwargs=dict(acronym=stream_acronym))
2525
login_testing_unauthorized(self, "secretary", url)
2626

2727
# get

ietf/templates/base/left_menu.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@
8888
<li><form action="/doc/search/" method="get" style="padding-bottom:0;margin-bottom:0;"><input type="text" style="margin-left:10px; width:100px; border:1px solid #89d;" name="name" /><input type="hidden" name="activedrafts" value="on"/><input type="hidden" name="rfcs" value="on"/></form></li>
8989
<li>
9090
<div style="padding: 0 0 0 10px;">Streams:</div>
91-
<a style="padding: 0 0 0 20px;" href="{% url ietf.group.views.streams %}iab/">IAB</a>
92-
<a style="padding: 0;" href="{% url ietf.group.views.streams %}irtf/">IRTF</a>
93-
<a style="padding: 0;" href="{% url ietf.group.views.streams %}ise/">ISE</a>
91+
<a style="padding: 0 0 0 20px;" href="{% url ietf.group.views_stream.streams %}iab/">IAB</a>
92+
<a style="padding: 0;" href="{% url ietf.group.views_stream.streams %}irtf/">IRTF</a>
93+
<a style="padding: 0;" href="{% url ietf.group.views_stream.streams %}ise/">ISE</a>
9494
</li>
9595
<li><a href="{% url submit_index %}">Submit a draft</a></li>
9696
{% if user|in_group:"WG Chair" %}

ietf/templates/base/streams_menu.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
{% if editable_streams %}
33
<li class="sect">Streams</li>
44
{% for stream in editable_streams %}
5-
<li{% if forloop.last %} style="margin-bottom: 2px;"{% endif %}><a href="{% url ietf.group.views.stream_edit stream.slug %}">{{ stream.name }} stream</a></li>
5+
<li{% if forloop.last %} style="margin-bottom: 2px;"{% endif %}><a href="{% url ietf.group.views_stream.stream_edit stream.slug %}">{{ stream.name }} stream</a></li>
66
{% endfor %}
77
{% endif %}

ietf/templates/group/stream_edit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h1>Manage {{ group.name }} stream</h1>
4040
<tr>
4141
<td></td>
4242
<td class="actions">
43-
<a class="button" href="{% url ietf.group.views.streams %}">Cancel</a>
43+
<a class="button" href="{% url ietf.group.views_stream.streams %}">Cancel</a>
4444
<input class="button" type="submit" value="Save"/>
4545
</td>
4646
</tr>

0 commit comments

Comments
 (0)