mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
Closes: #2414. - Remove separate implementation for showing logs in help page. - Add link to the page in diagnostics app so that FreedomBox logs can more easily be discovered by users. Tests: - Raise an exception in the common error middleware to cause a 500 internal server error. Run FreedomBox service with the --develop option and notice that 500 error page is served. There, the link to logs page works. It shows the logs for Diagnostics app. - Diagnostics page description is update. Link to logs page works. - Diagnostics page shows logs for plinth.service and freedombox-develop.service. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
29 lines
1.1 KiB
Python
29 lines
1.1 KiB
Python
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
"""
|
|
URLs for the Help module
|
|
"""
|
|
|
|
from django.urls import re_path
|
|
from stronghold.decorators import public
|
|
|
|
from plinth.utils import non_admin_view
|
|
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
re_path(r'^help/$', non_admin_view(views.index), name='index'),
|
|
re_path(r'^help/about/$', public(views.about), name='about'),
|
|
re_path(r'^help/feedback/$', non_admin_view(views.feedback),
|
|
name='feedback'),
|
|
re_path(r'^help/support/$', non_admin_view(views.support), name='support'),
|
|
re_path(r'^help/contribute/$', non_admin_view(views.contribute),
|
|
name='contribute'),
|
|
re_path(r'^help/manual/$', non_admin_view(views.manual), name='manual'),
|
|
re_path(r'^help/manual/(?P<lang>\w*(-\w*)?)/$',
|
|
non_admin_view(views.manual), name='manual'),
|
|
re_path(r'^help/manual/(?P<lang>\w*(-\w*)?)/(?P<page>[\w-]+)$',
|
|
non_admin_view(views.manual), name='manual-page'),
|
|
re_path(r'^help/manual-download/$', non_admin_view(views.download_manual),
|
|
name='download-manual'),
|
|
]
|