Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix bug 840207 - Add 'view in admin' link to documents

  • Loading branch information...
commit 6667fafdc9a665423cc8d294ad8d398a3a50fa3f 1 parent e2ed852
@darkwing darkwing authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  apps/wiki/templates/wiki/document.html
View
3  apps/wiki/templates/wiki/document.html
@@ -77,6 +77,9 @@
{% if waffle.flag('page_move') %}
<li><a href="{{ url('wiki.move', document.slug, locale=document.locale) }}">{{ _('Move this page') }}</a></li>
{% endif %}
+ {% if user.is_superuser %}
+ <li><a href="{{ url('admin:wiki_document_change', document.id) }}">{{ _('View in Admin') }}</a></li>
+ {% endif %}
</ul>
</li>
{% if document.is_localizable or document.parent %}
Please sign in to comment.
Something went wrong with that request. Please try again.