help: Add button to submit feedback

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati 2019-08-27 23:12:29 +05:30 committed by Sunil Mohan Adapa
parent 797a057ea2
commit 35fb7c4e0e
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
3 changed files with 67 additions and 0 deletions

View File

@ -57,6 +57,11 @@ class HelpApp(app_module.App):
'fa-download', 'help:download-manual',
parent_url_name='help:index', order=15)
self.add(menu_item)
menu_item = menu.Menu('menu-help-feedback',
ugettext_lazy('Submit Feedback'), None,
'fa-comments', 'help:feedback',
parent_url_name='help:index', order=25)
self.add(menu_item)
menu_item = menu.Menu('menu-help-about', ugettext_lazy('About'), None,
'fa-star', 'help:about',
parent_url_name='help:index', order=100)
@ -76,6 +81,12 @@ def index(request):
{'title': _('Documentation and FAQ')})
def feedback(request):
"""Serve the feedback page"""
return TemplateResponse(request, 'help_feedback.html',
{'title': _('Submit Feedback')})
def about(request):
"""Serve the about page"""
cache = Cache()

View File

@ -0,0 +1,55 @@
{% 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 "Submit Feedback" %}</h2>
<p>
{% blocktrans trimmed %}
Your feedback will help us improve {{ box_name }}!
{% endblocktrans %}
</p>
<p>
{% blocktrans trimmed %}
Let us know about missing features, your favourite apps and how we can
improve them on our <a href="https://discuss.freedombox.org" target="_blank">
discussion forum</a>.
{% endblocktrans %}
</p>
<p>
{% blocktrans trimmed %}
If you find any bugs or issues, please use the <a
href="https://salsa.debian.org/freedombox-team/plinth/issues"
target="_blank">issue tracker</a> to let our developers know. To report,
first check if the issue is already reported and then use the "New issue"
button.
{% endblocktrans %}
</p>
<p>
{% blocktrans trimmed %}
Thank you!
{% endblocktrans %}
</p>
{% endblock %}

View File

@ -27,6 +27,7 @@ from . import help as views
urlpatterns = [
url(r'^help/$', non_admin_view(views.index), name='index'),
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/manual/$', non_admin_view(views.manual), name='manual'),
url(r'^help/manual/download/$', non_admin_view(views.download_manual),
name='download-manual'),