mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 07:02:26 +00:00
Merge branch 'legal_notice' into 'dev'
Legal notice See merge request federez/re2o!460
This commit is contained in:
commit
5faf134690
2 changed files with 28 additions and 5 deletions
|
@ -29,8 +29,27 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
{% block title %}{% trans "About Re2o" %}{% endblock %}
|
{% block title %}{% trans "About Re2o" %}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2>{% blocktrans %}About {{AssoName}}{% endblocktrans %}</h2>
|
<h2>{% trans "Legal notes" %}</h2>
|
||||||
{{ description | safe }}
|
|
||||||
|
<h4>{% trans "Legal entity" %}</h4>
|
||||||
|
<p>{{ option.name | safe}}</p>
|
||||||
|
|
||||||
|
<h4>{% trans "Registered office" %}</h4>
|
||||||
|
<p>{{ option.adresse1 | safe }}</p>
|
||||||
|
<p>{{ option.adresse2 | safe }}</p>
|
||||||
|
|
||||||
|
<p>SIRET : {{ option.siret | safe }}</p>
|
||||||
|
|
||||||
|
<h4>{% trans "Publication manager" %}</h4>
|
||||||
|
<p>{{ president }} - {% trans "President of " %} {{ option.pseudo }}</p>
|
||||||
|
|
||||||
|
<h4>{% trans "General conditions of use" %}</h4>
|
||||||
|
<p><a href='{{ gtu.url }}' download='CGU'>{{ gtu }}</a></p>
|
||||||
|
|
||||||
|
{% if option.description %}
|
||||||
|
<h4>Extra informations</h4>
|
||||||
|
<p>{{ option.description | safe }}</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<h2>{% trans "About Re2o" %}</h2>
|
<h2>{% trans "About Re2o" %}</h2>
|
||||||
<p>{% blocktrans trimmed %}
|
<p>{% blocktrans trimmed %}
|
||||||
|
|
|
@ -39,7 +39,9 @@ from preferences.models import (
|
||||||
Service,
|
Service,
|
||||||
MailContact,
|
MailContact,
|
||||||
AssoOption,
|
AssoOption,
|
||||||
HomeOption
|
HomeOption,
|
||||||
|
GeneralOption,
|
||||||
|
Mandate
|
||||||
)
|
)
|
||||||
|
|
||||||
from .contributors import CONTRIBUTORS
|
from .contributors import CONTRIBUTORS
|
||||||
|
@ -77,6 +79,7 @@ def about_page(request):
|
||||||
Fetch some info about the configuration of the project. If it can't
|
Fetch some info about the configuration of the project. If it can't
|
||||||
get the info from the Git repository, fallback to default string """
|
get the info from the Git repository, fallback to default string """
|
||||||
option = AssoOption.objects.get()
|
option = AssoOption.objects.get()
|
||||||
|
general = GeneralOption.objects.get()
|
||||||
git_info_contributors = CONTRIBUTORS
|
git_info_contributors = CONTRIBUTORS
|
||||||
try:
|
try:
|
||||||
git_repo = git.Repo(settings.BASE_DIR)
|
git_repo = git.Repo(settings.BASE_DIR)
|
||||||
|
@ -98,8 +101,9 @@ def about_page(request):
|
||||||
request,
|
request,
|
||||||
"re2o/about.html",
|
"re2o/about.html",
|
||||||
{
|
{
|
||||||
'description': option.description,
|
'option': option,
|
||||||
'AssoName': option.name,
|
'gtu': general.GTU,
|
||||||
|
'president': Mandate.get_mandate().president.get_full_name(),
|
||||||
'git_info_contributors': git_info_contributors,
|
'git_info_contributors': git_info_contributors,
|
||||||
'git_info_remote': git_info_remote,
|
'git_info_remote': git_info_remote,
|
||||||
'git_info_branch': git_info_branch,
|
'git_info_branch': git_info_branch,
|
||||||
|
|
Loading…
Reference in a new issue