Permalink
Browse files

Merge pull request #987 from darkwing/admin-840207

fix bug 840207 - Add 'view in admin' link to documents
  • Loading branch information...
2 parents e2ed852 + 6667faf commit b3ddea5ff1ad9a662c8d4e894791a1885f37dbf5 @lmorchard lmorchard committed Apr 4, 2013
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 %}

0 comments on commit b3ddea5

Please sign in to comment.