Add a LEGAL_LINK setting. Fixes #761 (#883)

This commit is contained in:
Alexis Metaireau 2021-10-21 19:16:32 +02:00 committed by GitHub
parent d168e15357
commit 53c88c3b13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 62 additions and 1 deletions

View file

@ -161,6 +161,15 @@ Note: this setting is actually interpreted by Flask-Babel, see the
It is possible to add a simple captcha in order to filter out spammer bots on the form creation.
In order to do so, you just have to set `ENABLE_CAPTCHA = True`.
`LEGAL_LINK`
------------
You may want to point to a special legal page, for instance to give information
about GDPR, or how you handle the data of your users.
If you want to do this, you can use the `LEGAL_LINK` setting. Set it to the URL
you want.
Configuring emails sending
--------------------------
@ -176,4 +185,3 @@ possible to configure it to act differently, thanks to the great
* **MAIL_USERNAME** : default **None**
* **MAIL_PASSWORD** : default **None**
* **DEFAULT_MAIL_SENDER** : default **None**

View file

@ -33,3 +33,4 @@ SUPPORTED_LANGUAGES = [
"zh_Hans",
]
ENABLE_CAPTCHA = False
LEGAL_LINK = ""

View file

@ -739,6 +739,9 @@ msgstr ""
msgid "Administation Dashboard"
msgstr ""
msgid "Legal information"
msgstr ""
msgid "\"I hate money\" is free software"
msgstr ""

View file

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="34.337px" height="34.337px" viewBox="0 0 34.337 34.337" style="enable-background:new 0 0 34.337 34.337;"
xml:space="preserve">
<g>
<path d="M33.594,16.644l-7.147,7.15c-1.008,1.013-2.668,0.986-3.705-0.05c-0.896-0.896-1.029-2.255-0.4-3.261l-3.149-3.149
l-2.556,2.559c0.096,0.812-0.158,1.656-0.781,2.278L4.729,33.294c-0.541,0.541-1.25,0.812-1.959,0.812s-1.418-0.271-1.959-0.812
c-1.082-1.082-1.082-2.837,0-3.918l11.123-11.123c0.815-0.815,2.016-1.016,3.02-0.602l2.277-2.277l-3.147-3.148
c-1.003,0.633-2.363,0.496-3.261-0.399c-1.037-1.037-1.061-2.695-0.051-3.705l7.148-7.149c1.011-1.01,2.668-0.986,3.706,0.049
c0.896,0.896,1.03,2.26,0.399,3.263l8.258,8.259c1.006-0.63,2.363-0.496,3.261,0.4C34.58,13.978,34.604,15.635,33.594,16.644z"/>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -150,6 +150,11 @@
<i class="icon admin">{{ static_include("images/cog.svg") | safe }}</i>
</a>
{% endif %}
{% if config.LEGAL_LINK %}
<a target="_blank" rel="noopener" data-toggle="tooltip" data-placement="top" title="{{ _('Legal information') }}" href="{{ config.LEGAL_LINK }}">
<i class="icon legal">{{ static_include("images/legal.svg") | safe }}</i>
</a>
{% endif %}
</div>
<div class="footer-left">