Anonymous avatar Anonymous committed bdd90b0

Fix the admin reverse url in themes

Comments (0)

Files changed (5)

themes/andreas08/head.html

       {% else %}
       <li><a href="{% url profile_edit %}">{% trans "Profile" %}</a></li>
       {% if user.is_staff %}
-      <li><a href="{% url admin "." %}">{% trans "Admin" %}</a></li>
+      <li><a href="{% url admin:index %}">{% trans "Admin" %}</a></li>
       {% endif %}
       <li class="last"><a href="{% url logout %}">{% trans "Logout" %} ({{ user.username }})</a></li>
       {% endif %}

themes/catap.ru/navigation.html

   <ul>
   {% static_pages settings.STATIC_PAGES %}
   {% if user.is_authenticated %}
-  {% if user.is_staff %}<li><a href="{% url admin "." %}">{% trans "Admin" %}</a></li>{% endif %}
+  {% if user.is_staff %}<li><a href="{% url admin:index %}">{% trans "Admin" %}</a></li>{% endif %}
   <li><a href="{% url profile_edit %}">{% trans "Profile" %}</a></li>
   <li><a href="{% url logout %}">{% trans "Logout" %}</a></li>
   {% endif %}

themes/lite/blog/post_entry.html

 <div id="post-{{ object.id }}" class="post">
     {{ post_detail|cond_display:"<h2>,<h1>" }}
     <a href="{{ object.get_absolute_url }}">{{ object.name|typogrify|safe }}</a>
-    {% if user.is_staff %}<a href="{% url admin "." %}/blog/post/{{ object.id }}/"><img style="padding: 0; margin:0" src="{{ THEME_STATIC_URL }}img/options.gif" alt="{% trans "Edit post" %}" /></a>{% endif %}
+    {% if user.is_staff %}<a href="{% url admin:index %}/blog/post/{{ object.id }}/"><img style="padding: 0; margin:0" src="{{ THEME_STATIC_URL }}img/options.gif" alt="{% trans "Edit post" %}" /></a>{% endif %}
     {{ post_detail|cond_display:"</h2>,</h1>" }}
     <div class="metadata">
         {{ object.date|datelinks }} {{ object.date|time }}

themes/lite/head.html

   </span>
   {% else %}
   <a href="{% url logout %}">{% trans "Logout" %} ({{ user.username }})</a><br/>
-  {% if user.is_staff %}<a href="{% url admin "." %}">{% trans "Admin" %}</a>{% endif %}
+  {% if user.is_staff %}<a href="{% url admin:index %}">{% trans "Admin" %}</a>{% endif %}
   {% if user.is_staff %}&mdash; <a href="{% url admin "./blog/post/add/" %}">{% trans "Make post" %}</a>{% endif %}
   &mdash; <a href="{% url profile_edit %}">{% trans "Profile" %}</a>
   {% endif %}

themes/mirev/head.html

     <a href="#" id="show-pass">{% trans "password" %}</a> {% trans "or" %}
     <a href="#" id="show-openid">{% trans "OpenID" %}</a>
   {% else %}
-    {% if user.is_staff %}<a href="{% url admin "." %}">{% trans "Admin" %}</a>{% endif %}
+    {% if user.is_staff %}<a href="{% url admin:index %}">{% trans "Admin" %}</a>{% endif %}
     {% trans "Hello," %} <a href="{% url profile_edit %}">{{ user.name }}</a>
     (<a href="{% url logout %}">{% trans "logout" %}</a>)
   {% endif %}
   {% static_pages settings.STATIC_PAGES %}
   {% if user.is_authenticated %}
   <span id="bar-left">
-    {% if user.is_staff %}<a href="{% url admin "." %}">{% trans "Admin" %}</a>{% endif %}
+    {% if user.is_staff %}<a href="{% url admin:index %}">{% trans "Admin" %}</a>{% endif %}
     <a href="{% url profile_edit %}">{% trans "Profile" %}</a>
     <a href="{% url logout %}">{% trans "Logout" %}</a>
   </span>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.