mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
help: Remove the duplicate index URL and menu item
Signed-off-by: Manish Tripathy <manisht@thougtworks.com> Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
cece5a003d
commit
ee80d77be5
@ -36,9 +36,6 @@ def init():
|
|||||||
"""Initialize the Help module"""
|
"""Initialize the Help module"""
|
||||||
menu = main_menu.add_urlname(
|
menu = main_menu.add_urlname(
|
||||||
ugettext_lazy('Documentation'), 'glyphicon-book', 'help:index')
|
ugettext_lazy('Documentation'), 'glyphicon-book', 'help:index')
|
||||||
menu.add_urlname(
|
|
||||||
ugettext_lazy('Where to Get Help'), 'glyphicon-search',
|
|
||||||
'help:index-explicit', order=5)
|
|
||||||
menu.add_urlname(
|
menu.add_urlname(
|
||||||
ugettext_lazy('Manual'), 'glyphicon-info-sign', 'help:manual',
|
ugettext_lazy('Manual'), 'glyphicon-info-sign', 'help:manual',
|
||||||
order=10)
|
order=10)
|
||||||
|
|||||||
@ -25,11 +25,7 @@ from plinth.utils import non_admin_view
|
|||||||
from . import help as views
|
from . import help as views
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
# having two urls for one page is a hack to help the current url/menu
|
|
||||||
# system highlight the correct menu item. Every submenu-item with the same
|
|
||||||
# url prefix as the main-menu is highlighted automatically.
|
|
||||||
url(r'^help/$', non_admin_view(views.index), name='index'),
|
url(r'^help/$', non_admin_view(views.index), name='index'),
|
||||||
url(r'^help/index/$', non_admin_view(views.index), name='index-explicit'),
|
|
||||||
url(r'^help/about/$', non_admin_view(views.about), name='about'),
|
url(r'^help/about/$', non_admin_view(views.about), name='about'),
|
||||||
url(r'^help/manual/$', non_admin_view(views.manual), name='manual'),
|
url(r'^help/manual/$', non_admin_view(views.manual), name='manual'),
|
||||||
url(r'^help/manual/download/$', non_admin_view(views.download_manual),
|
url(r'^help/manual/download/$', non_admin_view(views.download_manual),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user