Browse Source

fix some more url tags (why didn't I do that before? <_<)

Natenom/support-murmur-13-1446181288462
Michael Ziegler 11 years ago
parent
commit
3007881f5c
  1. 6
      pyweb/mumble/templates/mumble/list.html
  2. 2
      pyweb/templates/registration/activation_email.txt
  3. 4
      pyweb/templates/registration/login.html
  4. 6
      pyweb/templates/registration/profile.html

6
pyweb/mumble/templates/mumble/list.html

@ -8,7 +8,7 @@
{% block body %}
{% endblock %}
{% block HeadTag %}
<script type="text/javascript" src="{% url django.views.i18n.javascript_catalog %}"></script>
<script type="text/javascript" src="{% url 'django.views.i18n.javascript_catalog' %}"></script>
<script type="text/javascript" src="{{ MUMBLE_DJANGO_URL }}mumble/api/api.js"></script>
<script type="text/javascript" src="{% static 'mumble/js/rendermumbleserver.js' %}"></script>
<script type="text/javascript" src="{% static 'mumble/js/buttoniframewindow.js' %}"></script>
@ -26,14 +26,14 @@
{
xtype: 'buttonIframeWindow',
text: "{% trans 'Edit Translation' %}",
url: '{% url rosetta-home %}',
url: '{% url "rosetta-home" %}',
},
{% endif %}
{% if user.is_staff %}
{
xtype: 'buttonIframeWindow',
text: "{% trans 'Administration' %}",
url: '{% url admin:app_list "mumble" %}',
url: '{% url "admin:app_list" "mumble" %}',
},
{% endif %}
{% if user.is_authenticated %}

2
pyweb/templates/registration/activation_email.txt

@ -3,7 +3,7 @@ Hello,
someone registered to {{ site }} and specified this EMail address. If this is correct, please follow this link to activate the account:
http://{{ site|slice:":-1" }}{% url registration_activate activation_key=activation_key %}
http://{{ site|slice:":-1" }}{% url 'registration_activate' activation_key=activation_key %}
In case you didn't register, please ignore this Mail. The account will be deleted in {{ expiration_days }} days and you will not receive any more mail from us.

4
pyweb/templates/registration/login.html

@ -29,8 +29,8 @@
<input type="hidden" name="next" value="{{ next }}" />
</form>
<ul>
<li>No Login? You can <a href="{% url registration.views.register %}">sign up!</a></li>
<li>Forgot the password? You can <a href="{% url django.contrib.auth.views.password_reset %}">reset it!</a></li>
<li>No Login? You can <a href="{% url 'registration.views.register' %}">sign up!</a></li>
<li>Forgot the password? You can <a href="{% url 'django.contrib.auth.views.password_reset' %}">reset it!</a></li>
</ul>
{% endblock %}

6
pyweb/templates/registration/profile.html

@ -13,7 +13,7 @@
<ul>
{% for mm in mumbleaccs %}
<li>
{{ mm.name }} on Server <a href="{% url mumble.views.show mm.server.id %}">{{ mm.server.name }}</a>
{{ mm.name }} on Server <a href="{% url 'mumble.views.show' mm.server.id %}">{{ mm.server.name }}</a>
</li>
{% endfor %}
</ul>
@ -29,8 +29,8 @@
<li>{% trans "staff status" %}: {{ user.is_staff|yesno }}</li>
<li>{% trans "date joined" %}: {{ user.date_joined|date }} {{ user.date_joined|time }}</li>
<li>{% trans "last login" %}: {{ user.last_login|date }} {{ user.last_login|time }}</li>
<li><a href="{% url django.contrib.auth.views.password_change %}">{% trans "Change password" %}</a></li>
<li><a href="{% url django.contrib.auth.views.logout %}">{% trans "Log out" %}</a></li>
<li><a href="{% url 'django.contrib.auth.views.password_change' %}">{% trans "Change password" %}</a></li>
<li><a href="{% url 'django.contrib.auth.views.logout' %}">{% trans "Log out" %}</a></li>
</ul>
</div>
{% endblock %}

Loading…
Cancel
Save