Commit 22d38086ad8c9c1480fe88f985c548d0c68fe43e
1 parent
eba9ded3
Exists in
master
and in
13 other branches
Adding quotes in url tags (required since django 1.5)
Showing
8 changed files
with
25 additions
and
25 deletions
Show diff stats
src/colab/deprecated/templates/account_request_reset_password.html
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | {% block main-content %} |
5 | 5 | <h2>{% trans "I forgot my password" %}</h2> |
6 | 6 | |
7 | -<form method="POST" action="{% url request_reset_password %}"> | |
7 | +<form method="POST" action="{% url 'request_reset_password' %}"> | |
8 | 8 | {% csrf_token %} |
9 | 9 | |
10 | 10 | <fieldset class="span-24 center box"> | ... | ... |
src/colab/deprecated/templates/base.html
... | ... | @@ -68,22 +68,22 @@ |
68 | 68 | <div id="top-menu" class="right"> |
69 | 69 | {% if not user.is_authenticated %} |
70 | 70 | <span class="colborder"> |
71 | - <a href="{% url signup %}">{% trans "Sign up" %}</a> | |
71 | + <a href="{% url 'signup' %}">{% trans "Sign up" %}</a> | |
72 | 72 | </span> |
73 | 73 | <span> |
74 | - <a href="{% url login %}?next={{ request.path }}">{% trans "Login" %}</a> | |
74 | + <a href="{% url 'login' %}?next={{ request.path }}">{% trans "Login" %}</a> | |
75 | 75 | </span> |
76 | 76 | {% else %} |
77 | 77 | <span class="colborder"> |
78 | 78 | {% trans "authenticated as" %} <b>{{ user.username }}</b> |
79 | 79 | </span> |
80 | 80 | <span class="colborder"> |
81 | - <a href="{% url user_profile user.username %}"> | |
81 | + <a href="{% url 'user_profile' user.username %}"> | |
82 | 82 | {% trans "My Profile" %} |
83 | 83 | </a> |
84 | 84 | </span> |
85 | 85 | <span> |
86 | - <a href="{% url logout %}"> | |
86 | + <a href="{% url 'logout' %}"> | |
87 | 87 | {% trans "Logout" %} |
88 | 88 | </a> |
89 | 89 | </span> |
... | ... | @@ -100,7 +100,7 @@ |
100 | 100 | <div id="header-menu" class="span-24"> |
101 | 101 | |
102 | 102 | <span class="colborder"> |
103 | - <a href="{% url thread_list %}">{% trans "Discussions" %}</a> | |
103 | + <a href="{% url 'thread_list' %}">{% trans "Discussions" %}</a> | |
104 | 104 | </span> |
105 | 105 | <span class="colborder"> |
106 | 106 | <a href="http://colab.interlegis.gov.br/wiki" target="_blank">{% trans "Wiki" %}</a> |
... | ... | @@ -137,7 +137,7 @@ |
137 | 137 | |
138 | 138 | <div id="footer" class="span-24 center"> |
139 | 139 | {% block footer %} |
140 | - <p><a href="{% url opendata %}"><img src="{{ STATIC_URL }}img/opendata3.png"/></a></p> | |
140 | + <p><a href="{% url 'opendata' %}"><img src="{{ STATIC_URL }}img/opendata3.png"/></a></p> | |
141 | 141 | <p>{% trans "The contents of this site is published under license" %} <a |
142 | 142 | href="http://creativecommons.org/licenses/by-nc-sa/2.0/br/">{% trans "Creative Commons - attribution, non-commercial" %}</a> |
143 | 143 | </p> | ... | ... |
src/colab/deprecated/templates/email_account-reset-password.html
... | ... | @@ -14,6 +14,6 @@ |
14 | 14 | {% endblocktrans %} |
15 | 15 | <br/> |
16 | 16 | |
17 | -<a href="http://{{ server_name }}{% url reset_password hash %}"> | |
18 | - http://{{ server_name }}{% url reset_password hash %} | |
17 | +<a href="http://{{ server_name }}{% url 'reset_password' hash %}"> | |
18 | + http://{{ server_name }}{% url 'reset_password' hash %} | |
19 | 19 | </a> | ... | ... |
src/colab/deprecated/templates/email_signup-email-confirmation.html
... | ... | @@ -4,6 +4,6 @@ |
4 | 4 | |
5 | 5 | {% trans "To activate your account, please confirm your mail's activation by accessing the following link:" %} |
6 | 6 | |
7 | -<a href="http://{{ server_name }}{% url email_verification hash %}"> | |
8 | - http://{{ server_name }}{% url email_verification hash %} | |
7 | +<a href="http://{{ server_name }}{% url 'email_verification' hash %}"> | |
8 | + http://{{ server_name }}{% url 'email_verification' hash %} | |
9 | 9 | </a> | ... | ... |
src/colab/deprecated/templates/home.html
... | ... | @@ -19,7 +19,7 @@ |
19 | 19 | |
20 | 20 | <div class="span-12 colborder"> |
21 | 21 | <h3>{% trans "Latest collaborations" %}<a class="rss" target="_blank" |
22 | - href="{% url rss_latest_colab %}" | |
22 | + href="{% url 'rss_latest_colab' %}" | |
23 | 23 | title="{% trans 'RSS - Latest collaborations' %}"> |
24 | 24 | <img src="{{ STATIC_URL }}img/rss.png" alt="{% trans 'RSS' %}"/></a> |
25 | 25 | </h3> |
... | ... | @@ -29,7 +29,7 @@ |
29 | 29 | {% endfor %} |
30 | 30 | </ul> |
31 | 31 | <hr class="space"/> |
32 | - <a class="right" href="{% url search %}?o=modified+desc"> | |
32 | + <a class="right" href="{% url 'search' %}?o=modified+desc"> | |
33 | 33 | {% trans "View more collaborations..." %} |
34 | 34 | </a> |
35 | 35 | </div> |
... | ... | @@ -44,7 +44,7 @@ |
44 | 44 | |
45 | 45 | <div class="span-12 colborder"> |
46 | 46 | <h3>{% trans "Discussions Most Relevance" %}<a class="rss" target="_blank" |
47 | - href="{% url rss_hottest_threads %}" | |
47 | + href="{% url 'rss_hottest_threads' %}" | |
48 | 48 | title="{% trans "RSS - Discussions Most Relevance" %}"> |
49 | 49 | <img src="{{ STATIC_URL }}img/rss.png" alt="{% trans 'RSS' %}"/></a> |
50 | 50 | </h3> |
... | ... | @@ -54,14 +54,14 @@ |
54 | 54 | {% endfor %} |
55 | 55 | </ul> |
56 | 56 | <hr class="space"/> |
57 | - <a class="right" href="{% url thread_list %}?order=hottest"> | |
57 | + <a class="right" href="{% url 'thread_list' %}?order=hottest"> | |
58 | 58 | {% trans "View more discussions relevance..." %} |
59 | 59 | </a> |
60 | 60 | </div> |
61 | 61 | |
62 | 62 | <div class="span-11 last"> |
63 | 63 | <h3>{% trans "Latest Discussions" %}<a class="rss" target="_blank" |
64 | - href="{% url rss_latest_threads %}" | |
64 | + href="{% url 'rss_latest_threads' %}" | |
65 | 65 | title="{% trans "RSS - Latest Discussions" %}"> |
66 | 66 | <img src="{{ STATIC_URL }}img/rss.png" alt="{% trans 'RSS' %}"/></a> |
67 | 67 | </h3> |
... | ... | @@ -71,7 +71,7 @@ |
71 | 71 | {% endfor %} |
72 | 72 | </ul> |
73 | 73 | <hr class="space"/> |
74 | - <a class="right" href="{% url thread_list %}"> | |
74 | + <a class="right" href="{% url 'thread_list' %}"> | |
75 | 75 | {% trans "View more discussions..." %} |
76 | 76 | </a> |
77 | 77 | </div> | ... | ... |
src/colab/deprecated/templates/login.html
... | ... | @@ -10,7 +10,7 @@ |
10 | 10 | {% endif %} |
11 | 11 | |
12 | 12 | <div id="login-form-wrapper"> |
13 | - <form class="span-24" method="POST" action="{% url login %}"> | |
13 | + <form class="span-24" method="POST" action="{% url 'login' %}"> | |
14 | 14 | {% csrf_token %} |
15 | 15 | |
16 | 16 | <fieldset class="span-10 box"> |
... | ... | @@ -27,7 +27,7 @@ |
27 | 27 | </p> |
28 | 28 | |
29 | 29 | <input type="submit" value="Login" /> |
30 | - <a class="right" href="{% url request_reset_password %}">{% trans "I forgot my password" %}</a> | |
30 | + <a class="right" href="{% url 'request_reset_password' %}">{% trans "I forgot my password" %}</a> | |
31 | 31 | |
32 | 32 | <input type="hidden" name="next" value="{% firstof next '/' %}" /> |
33 | 33 | </fieldset> |
... | ... | @@ -40,7 +40,7 @@ |
40 | 40 | click on the link below and get to work!" %}</p> |
41 | 41 | |
42 | 42 | <a class="span-11 center large" |
43 | - href="{% url signup %}">{% trans "Sign up" %}</a> | |
43 | + href="{% url 'signup' %}">{% trans "Sign up" %}</a> | |
44 | 44 | </fieldset> |
45 | 45 | </form> |
46 | 46 | </div> | ... | ... |
src/colab/deprecated/templates/user-profile.html
... | ... | @@ -10,7 +10,7 @@ |
10 | 10 | {% if not user_profile %} |
11 | 11 | <span class="notice span-24"> |
12 | 12 | <b>{% trans "User not registered." %}</b> {% trans "You are own this profile?" %} |
13 | - <a href="{% url signup %}">{% trans "Click here and sign up." %}</a> | |
13 | + <a href="{% url 'signup' %}">{% trans "Click here and sign up." %}</a> | |
14 | 14 | </span> |
15 | 15 | |
16 | 16 | {% else %} |
... | ... | @@ -18,7 +18,7 @@ |
18 | 18 | {% ifequal request.user.username user_profile.user.username %} |
19 | 19 | <span class="success span-24"> |
20 | 20 | {% trans "Hey, look you here! Want to " %} |
21 | - <a href="{% url user_profile_update request.user %}">{% trans "edit your profile" %}</a>? | |
21 | + <a href="{% url 'user_profile_update' request.user %}">{% trans "edit your profile" %}</a>? | |
22 | 22 | </span> |
23 | 23 | {% endifequal %} |
24 | 24 | |
... | ... | @@ -34,7 +34,7 @@ |
34 | 34 | |
35 | 35 | <div class="span-20 last"> |
36 | 36 | <div class="span-10"> |
37 | - <form action="{% url user_profile_update request.user %}" method='post'> | |
37 | + <form action="{% url 'user_profile_update' request.user %}" method='post'> | |
38 | 38 | {% csrf_token %} |
39 | 39 | |
40 | 40 | <h3>{% trans "Personal Information" %}</h3> |
... | ... | @@ -42,7 +42,7 @@ |
42 | 42 | <li> |
43 | 43 | {{ form.username.label_tag }}: {{ user_profile.user.username }} |
44 | 44 | {% ifequal request.user.username user_profile.user.username %} |
45 | - (<a href="{% url change_password %}">{% trans "change password" %}</a>) | |
45 | + (<a href="{% url 'change_password' %}">{% trans "change password" %}</a>) | |
46 | 46 | {% endifequal %} |
47 | 47 | </li> |
48 | 48 | <li> | ... | ... |
src/super_archives/templates/message-preview.html
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | {% endif %} |
12 | 12 | |
13 | 13 | {% if doc.mailinglist %} |
14 | - <a href="{% url super_archives.views.list_messages %}?list={{ doc.mailinglist }}"> | |
14 | + <a href="{% url 'super_archives.views.list_messages' %}?list={{ doc.mailinglist }}"> | |
15 | 15 | <span class="tag">{{ doc.mailinglist }}</span> |
16 | 16 | </a> |
17 | 17 | {% endif %} | ... | ... |