mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-18 09:10:49 +00:00
help: Add button for Contribute
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
519b573e9f
commit
b484dcb301
@ -67,6 +67,11 @@ class HelpApp(app_module.App):
|
||||
'fa-comments', 'help:feedback',
|
||||
parent_url_name='help:index', order=25)
|
||||
self.add(menu_item)
|
||||
menu_item = menu.Menu('menu-help-contribute',
|
||||
ugettext_lazy('Contribute'), None, 'fa-wrench',
|
||||
'help:contribute', parent_url_name='help:index',
|
||||
order=30)
|
||||
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)
|
||||
@ -86,6 +91,12 @@ def index(request):
|
||||
{'title': _('Documentation and FAQ')})
|
||||
|
||||
|
||||
def contribute(request):
|
||||
"""Serve the contribute page"""
|
||||
return TemplateResponse(request, 'help_contribute.html',
|
||||
{'title': _('Contribute')})
|
||||
|
||||
|
||||
def feedback(request):
|
||||
"""Serve the feedback page"""
|
||||
return TemplateResponse(request, 'help_feedback.html',
|
||||
|
||||
54
plinth/modules/help/templates/help_contribute.html
Normal file
54
plinth/modules/help/templates/help_contribute.html
Normal file
@ -0,0 +1,54 @@
|
||||
{% 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 "Contribute" %}</h2>
|
||||
|
||||
<p>
|
||||
{% blocktrans trimmed %}
|
||||
The FreedomBox project welcomes contributions of all kinds.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% blocktrans trimmed %}
|
||||
You can contribute by writing code, testing and reporting bugs, discussing
|
||||
new use cases and applications, designing logos and artwork, providing
|
||||
support to your fellow users, translating FreedomBox and its applications
|
||||
into your language, hosting hackathons or install fests and by spreading the
|
||||
word.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% blocktrans trimmed %}
|
||||
You can also help the project
|
||||
financially by donating to the non-profit FreedomBox Foundation.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
|
||||
<p class="manual-page">
|
||||
<a href="https://wiki.debian.org/FreedomBox/Contribute">
|
||||
{% trans 'Learn more...' %}
|
||||
</a>
|
||||
</p>
|
||||
{% endblock %}
|
||||
@ -29,6 +29,8 @@ urlpatterns = [
|
||||
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/support/$', non_admin_view(views.support), name='support'),
|
||||
url(r'^help/contribute/$', non_admin_view(views.contribute),
|
||||
name='contribute'),
|
||||
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