Skip to content

Commit

Permalink
Remove "Documentation" link from admin menu
Browse files Browse the repository at this point in the history
We decided to remove the Documentation link for now. Do so.
  • Loading branch information
donald committed Nov 1, 2019
1 parent aea7401 commit b9146d3
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 b9146d3

Please sign in to comment.