Skip to content

Commit

Permalink
Merge pull request #9 from molgen/remove-doc-link
Browse files Browse the repository at this point in the history
Remove "Documentation" link from admin menu
  • Loading branch information
donald authored Nov 1, 2019
2 parents aea7401 + b9146d3 commit 81e4bda
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions mpicms/base/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ def register_h1_feature(features):
def register_site_button():
return MenuItem(_('View website'), '/?', classnames='icon icon-site', order=1) # Without the ? Wagtail applies different CSS


@hooks.register('register_admin_menu_item')
def register_docs_link():
return MenuItem(_('Documentation'), reverse('docs'), classnames='icon icon-help', order=10000)


@hooks.register('after_edit_page')
def send_notifications(request, page):
subscribers = [user.email for user in page.subscribers.exclude(id=request.user.id)]
Expand Down

0 comments on commit 81e4bda

Please sign in to comment.