Commits

Anonymous committed 7f8efbe

Dynamic admin urls in templates

For django instances not mounted at /

  • Participants
  • Parent commits f3fe97d

Comments (0)

Files changed (2)

livesettings/templates/livesettings/group_settings.html

 {% block stylesheet %}{% load adminmedia %}{% admin_media_prefix %}css/forms.css{% endblock %}
 {% block coltype %}colMS{% endblock %}
 {% block bodyclass %}dashboard{% endblock %}
-{% block userlinks %}<a href="/admin/doc/">{% trans 'Documentation' %}</a> / <a href="/admin/password_change/">{% trans 'Change password' %}</a> / <a href="/admin/logout/">{% trans 'Log out' %}</a>{% endblock %}
+{% block userlinks %}<a href="{% url admin:index %}doc/">{% trans 'Documentation' %}</a> / <a href="{% url admin:index %}password_change/">{% trans 'Change password' %}</a> / <a href="{% url admin:index %}logout/">{% trans 'Log out' %}</a>{% endblock %}
 {% block breadcrumbs %}{% if not is_popup %}
 <div class="breadcrumbs">
-     <a href="/admin/">{% trans "Home" %}</a> &rsaquo;
+     <a href="{% url admin:index %}">{% trans "Home" %}</a> &rsaquo;
      {% trans "Edit Group Settings" %}
 </div>
 {% endif %}{% endblock %}

livesettings/templates/livesettings/site_settings.html

 {% endblock %}
 {% block coltype %}colMS{% endblock %}
 {% block bodyclass %}dashboard{% endblock %}
-{% block userlinks %}<a href="/admin/doc/">{% trans 'Documentation' %}</a> / <a href="/admin/password_change/">{% trans 'Change password' %}</a> / <a href="/admin/logout/">{% trans 'Log out' %}</a>{% endblock %}
+{% block userlinks %}<a href="{% url admin:index %}doc/">{% trans 'Documentation' %}</a> / <a href="{% url admin:index %}password_change/">{% trans 'Change password' %}</a> / <a href="{% url admin:index %}logout/">{% trans 'Log out' %}</a>{% endblock %}
 {% block breadcrumbs %}{% if not is_popup %}
 <div class="breadcrumbs">
-	<a href="/admin/">{% trans "Home" %}</a> &rsaquo;
+	<a href="{% url admin:index %}">{% trans "Home" %}</a> &rsaquo;
 	{% trans "Edit Site Settings" %}
 </div>
 {% endif %}{% endblock %}