Skip to content

Commit 7a86afe

Browse files
committed
Port templates to new {% url %} syntax with quotes around the first parameter
- Legacy-Id: 6877
1 parent b2d69c5 commit 7a86afe

128 files changed

Lines changed: 280 additions & 280 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ietf/templates/base/left_menu.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,30 +37,30 @@
3737
{% load ietf_filters community_tags %}
3838
<ul>
3939
<li class="sect first">Settings</li>
40-
<li><a href="{% url account_index %}">{% if request.user.is_authenticated %}Manage Account{% else %}New Account{% endif %}</a></li>
40+
<li><a href="{% url "account_index" %}">{% if request.user.is_authenticated %}Manage Account{% else %}New Account{% endif %}</a></li>
4141
<li><a href="{%url ietf.cookies.views.settings %}" rel="nofollow">Options</a></li>
4242
{% if user|has_role:"Area Director" %}
4343
<li class="sect">AD Dashboard</li>
44-
<li><a href="{% url docs_for_ad name=user.get_profile.full_name_as_key %}">My Documents</a></li>
45-
<li><a href="{% url ietf.iesg.views.agenda_documents %}">Next Telechat</a></li>
46-
<li><a href="{% url ietf.iesg.views.discusses %}">Discusses</a></li>
47-
<li><a href="{% url ietf.iesg.views.milestones_needing_review %}">Milestones</a></li>
44+
<li><a href="{% url "docs_for_ad" name=user.get_profile.full_name_as_key %}">My Documents</a></li>
45+
<li><a href="{% url "ietf.iesg.views.agenda_documents" %}">Next Telechat</a></li>
46+
<li><a href="{% url "ietf.iesg.views.discusses" %}">Discusses</a></li>
47+
<li><a href="{% url "ietf.iesg.views.milestones_needing_review" %}">Milestones</a></li>
4848
{% endif %}
4949
{% if user|has_role:"Secretariat" %}
5050
<li class="sect">Secretariat</li>
5151
<li><a href="/admin/iesg/telechatdate/">Telechat Dates</a></li>
5252
<li><a href="/admin/iesg/telechatagendaitem/">Management Items</a></li>
53-
<li><a href="{% url ietf.iesg.views.milestones_needing_review %}">Milestones</a></li>
54-
<li><a href="{% url ietf.sync.views.discrepancies %}">Sync discrepancies</a>
53+
<li><a href="{% url "ietf.iesg.views.milestones_needing_review" %}">Milestones</a></li>
54+
<li><a href="{% url "ietf.sync.views.discrepancies" %}">Sync discrepancies</a>
5555
{% endif %}
5656
{% streams_menu %}
5757
{% if user|has_role:"IANA" %}
5858
<li class="sect">IANA</li>
59-
<li><a href="{% url ietf.sync.views.discrepancies %}">Sync discrepancies</a></li>
59+
<li><a href="{% url "ietf.sync.views.discrepancies" %}">Sync discrepancies</a></li>
6060
{% endif %}
6161
{% if user|has_role:"RFC Editor" %}
6262
<li class="sect">RFC Editor</li>
63-
<li><a href="{% url ietf.sync.views.discrepancies %}">Sync discrepancies</a></li>
63+
<li><a href="{% url "ietf.sync.views.discrepancies" %}">Sync discrepancies</a></li>
6464
{% endif %}
6565
<li class="sect">Working Groups</li>
6666

@@ -73,8 +73,8 @@
7373
</div></div></li>
7474

7575
<li style="padding-top:0;"><a href="/wg/">Active WGs</a></li>
76-
<li><a href="{% url ietf.wginfo.views.chartering_wgs %}">Chartering WGs</a></li>
77-
<li><a href="{% url ietf.wginfo.views.bofs %}">BoFs</a></li>
76+
<li><a href="{% url "ietf.wginfo.views.chartering_wgs" %}">Chartering WGs</a></li>
77+
<li><a href="{% url "ietf.wginfo.views.bofs" %}">BoFs</a></li>
7878
<li><a href="http://tools.ietf.org/wg/concluded">Concluded WGs</a></li>
7979
<li><a href="http://www.ietf.org/list/nonwg.html">Non-WG Lists</a></li>
8080

@@ -84,13 +84,13 @@
8484
<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>
8585
<li>
8686
<div style="padding: 0 0 0 10px;">Streams:</div>
87-
<a style="padding: 0 0 0 20px;" href="{% url ietf.group.views_stream.streams %}iab/">IAB</a>
88-
<a style="padding: 0;" href="{% url ietf.group.views_stream.streams %}irtf/">IRTF</a>
89-
<a style="padding: 0;" href="{% url ietf.group.views_stream.streams %}ise/">ISE</a>
87+
<a style="padding: 0 0 0 20px;" href="{% url "ietf.group.views_stream.streams" %}iab/">IAB</a>
88+
<a style="padding: 0;" href="{% url "ietf.group.views_stream.streams" %}irtf/">IRTF</a>
89+
<a style="padding: 0;" href="{% url "ietf.group.views_stream.streams" %}ise/">ISE</a>
9090
</li>
91-
<li><a href="{% url submit_upload_submission %}">Submit a draft</a></li>
91+
<li><a href="{% url "submit_upload_submission" %}">Submit a draft</a></li>
9292
{% if user|has_role:"WG Chair" %}
93-
<li><a href="{% url submit_approvals %}">Approve a draft</a></li>
93+
<li><a href="{% url "submit_approvals" %}">Approve a draft</a></li>
9494
{% endif %}
9595
{% get_user_managed_lists user as community_lists %}
9696
{% if community_lists %}
@@ -102,7 +102,7 @@
102102
<li><a href="http://{{ request.get_host }}/accounts/login/?next={{request.get_full_path|urlencode}}" rel="nofollow">Sign in to track drafts</a></li>
103103
{% endif %}
104104
{% if user|has_role:"Area Director,Secretariat" %}
105-
<li><a href="{% url rfc_status_changes %}">RFC status changes</a></li>
105+
<li><a href="{% url "rfc_status_changes" %}">RFC status changes</a></li>
106106
{% endif %}
107107

108108

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.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/community/manage_clist.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ <h2>Documents explicitly included, from a document search.</a></h2>
4747
<td>{{ doc.display_name }}</td>
4848
<td>{{ doc.get_state }}</td>
4949
<td><a href="{{ doc.get_absolute_url }}"</a>{{ doc.title }}</td>
50-
<td><a href="{% url community_remove_document cl.pk doc.pk %}">Remove</a></td>
50+
<td><a href="{% url "community_remove_document" cl.pk doc.pk %}">Remove</a></td>
5151
</tr>
5252
{% endfor %}
5353
</table>
@@ -63,7 +63,7 @@ <h2>Rules added to this list</h2>
6363
<td>{{ callable.description }}</td>
6464
<td>{{ callable.show_value }}</td>
6565
<td>{% with rule.cached_ids.count as count %}{{ count }} document{{ count|pluralize }}{% endwith %}</td>
66-
<td><a href="{% url community_remove_rule cl.pk rule.pk %}">Remove</a></td>
66+
<td><a href="{% url "community_remove_rule" cl.pk rule.pk %}">Remove</a></td>
6767
</tr>
6868
{% endwith %}
6969
{% endfor %}

ietf/templates/community/public/subscribe_email.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Hello,
33

44
In order to complete your subscription for {% if significant %}significant {% endif %}changes on {{ clist.long_name }}, please follow this link or copy it and paste it in your web browser:
55

6-
http://{{ domain }}{% if significant %}{% url confirm_significant_subscription clist.id to_email today auth %}{% else %}{% url confirm_subscription clist.id to_email today auth %}{% endif %}
6+
http://{{ domain }}{% if significant %}{% url "confirm_significant_subscription" clist.id to_email today auth %}{% else %}{% url "confirm_subscription" clist.id to_email today auth %}{% endif %}
77

88
Best regards,
99

ietf/templates/community/public/subscription_confirm.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ <h1>Subscription to {{ cl.long_name }}</h1>
88
You email address {{ email }} has been successfully subscribed to {{ cl.long_name }}
99
</p>
1010
<p>
11-
<a href="{% url view_personal_list secret=cl.secret %}">Return to the list view</a>
11+
<a href="{% url "view_personal_list" secret=cl.secret %}">Return to the list view</a>
1212
</p>
1313
{% endblock %}

ietf/templates/community/public/unsubscribe_email.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Hello,
33

44
In order to complete the cancelation of your subscription to {% if significant %}significant {% endif %}changes on {{ clist.long_name }}, please follow this link or copy it and paste it in your web browser:
55

6-
http://{{ domain }}{% if significant %}{% url confirm_significant_unsubscription clist.id to_email today auth %}{% else %}{% url confirm_unsubscription clist.id to_email today auth %}{% endif %}
6+
http://{{ domain }}{% if significant %}{% url "confirm_significant_unsubscription" clist.id to_email today auth %}{% else %}{% url "confirm_unsubscription" clist.id to_email today auth %}{% endif %}
77

88
Best regards,
99

ietf/templates/doc/add_comment.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1>Add comment on {{ doc }}</h1>
2424
<tr>
2525
<td></td>
2626
<td class="actions">
27-
<a href="{% url doc_history name=doc.name %}">Back</a>
27+
<a href="{% url "doc_history" name=doc.name %}">Back</a>
2828
<input type="submit" value="Add comment"/>
2929
</td>
3030
</tr>

ietf/templates/doc/ballot/approvaltext.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h1>Approval announcement writeup for {{ doc }}</h1>
2929
{% if user|has_role:"Secretariat" %}
3030
<p>
3131
{% if can_announce %}
32-
<a href="{% url doc_approve_ballot name=doc.name %}">Approve ballot</a>
32+
<a href="{% url "doc_approve_ballot" name=doc.name %}">Approve ballot</a>
3333
{% endif %}
3434
</p>
3535
{% endif %}

ietf/templates/doc/ballot/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 {{ doc }}</h1>
3030
</div>
3131

3232
<div class="actions">
33-
<a href="{% url doc_ballot_approvaltext name=doc.name %}">Back</a>
33+
<a href="{% url "doc_ballot_approvaltext" name=doc.name %}">Back</a>
3434
{% ifequal action "to_announcement_list" %}
3535
<input type="submit" value="Notify the RFC Editor, send out the announcement and close ballot"/>
3636
{% endifequal %}

ietf/templates/doc/ballot/lastcalltext.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h1>Last Call text for {{ doc }}</h1>
3838
{% if user|has_role:"Secretariat" %}
3939
<p>
4040
{% if can_make_last_call %}
41-
<a href="{% url doc_make_last_call name=doc.name %}">Make Last Call</a>
41+
<a href="{% url "doc_make_last_call" name=doc.name %}">Make Last Call</a>
4242
{% endif %}
4343

4444
</p>

0 commit comments

Comments
 (0)