mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
help: Add button to submit feedback
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
797a057ea2
commit
35fb7c4e0e
@ -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()
|
||||
|
||||
55
plinth/modules/help/templates/help_feedback.html
Normal file
55
plinth/modules/help/templates/help_feedback.html
Normal 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 %}
|
||||
@ -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'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user