mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
help: Add button for Support
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
35fb7c4e0e
commit
519b573e9f
@ -57,6 +57,11 @@ class HelpApp(app_module.App):
|
|||||||
'fa-download', 'help:download-manual',
|
'fa-download', 'help:download-manual',
|
||||||
parent_url_name='help:index', order=15)
|
parent_url_name='help:index', order=15)
|
||||||
self.add(menu_item)
|
self.add(menu_item)
|
||||||
|
menu_item = menu.Menu('menu-help-support',
|
||||||
|
ugettext_lazy('Get Support'), None,
|
||||||
|
'fa-life-ring', 'help:support',
|
||||||
|
parent_url_name='help:index', order=20)
|
||||||
|
self.add(menu_item)
|
||||||
menu_item = menu.Menu('menu-help-feedback',
|
menu_item = menu.Menu('menu-help-feedback',
|
||||||
ugettext_lazy('Submit Feedback'), None,
|
ugettext_lazy('Submit Feedback'), None,
|
||||||
'fa-comments', 'help:feedback',
|
'fa-comments', 'help:feedback',
|
||||||
@ -87,6 +92,12 @@ def feedback(request):
|
|||||||
{'title': _('Submit Feedback')})
|
{'title': _('Submit Feedback')})
|
||||||
|
|
||||||
|
|
||||||
|
def support(request):
|
||||||
|
"""Serve the support page"""
|
||||||
|
return TemplateResponse(request, 'help_support.html',
|
||||||
|
{'title': _('Get Support')})
|
||||||
|
|
||||||
|
|
||||||
def about(request):
|
def about(request):
|
||||||
"""Serve the about page"""
|
"""Serve the about page"""
|
||||||
cache = Cache()
|
cache = Cache()
|
||||||
|
|||||||
52
plinth/modules/help/templates/help_support.html
Normal file
52
plinth/modules/help/templates/help_support.html
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
{% extends 'help_base.html' %}
|
||||||
|
{% comment %}
|
||||||
|
#
|
||||||
|
# This file is part of FreedomBox.
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
{% endcomment %}
|
||||||
|
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<h2>{% trans "Get Support" %}</h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
{% blocktrans trimmed %}
|
||||||
|
If you need help in getting something done or if you are facing problems
|
||||||
|
using {{ box_name }}, you can ask for help from our community of users
|
||||||
|
and contributors.
|
||||||
|
{% endblocktrans %}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
{% blocktrans trimmed %}
|
||||||
|
Search for past discussions or post a new query on our
|
||||||
|
<a href="https://discuss.freedombox.org" target="_blank">discussion forum</a>.
|
||||||
|
{% endblocktrans %}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
{% blocktrans trimmed %}
|
||||||
|
You can also chat with us on our IRC and Matrix channels (bridged):
|
||||||
|
<ul>
|
||||||
|
<li>#freedombox on irc.oftc.net</li>
|
||||||
|
<li>#freedombox:matrix.org</li>
|
||||||
|
</ul>
|
||||||
|
Or send an email to our <a
|
||||||
|
href="mailto:freedombox-discuss@alioth-lists.debian.net">mailing list</a>.
|
||||||
|
{% endblocktrans %}
|
||||||
|
</p>
|
||||||
|
{% endblock %}
|
||||||
@ -28,6 +28,7 @@ urlpatterns = [
|
|||||||
url(r'^help/$', non_admin_view(views.index), name='index'),
|
url(r'^help/$', non_admin_view(views.index), name='index'),
|
||||||
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/feedback/$', non_admin_view(views.feedback), name='feedback'),
|
url(r'^help/feedback/$', non_admin_view(views.feedback), name='feedback'),
|
||||||
|
url(r'^help/support/$', non_admin_view(views.support), name='support'),
|
||||||
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),
|
||||||
name='download-manual'),
|
name='download-manual'),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user