Fix Django 2.2 compatibility

This commit is contained in:
Alexandre Iooss 2022-12-26 00:13:53 +01:00
parent f12c0bbcfb
commit 28eb2cb949
3 changed files with 14 additions and 14 deletions

View file

@ -10,33 +10,33 @@ SPDX-License-Identifier: GPL-3.0-or-later
{% block content %}
<h2>{% trans "Welcome to the pictures server!" %}</h2>
<p>
{% blocktranslate trimmed %}
{% blocktrans trimmed %}
This website aims to collect the pictures and movies taken in the student
life of ENS Paris-Saclay or involving its students.
{% endblocktranslate %}
{% endblocktrans %}
</p>
<p>
{% url 'photologue:pl-gallery-archive' as gallery_archive_url %}
{% blocktranslate trimmed %}
{% blocktrans trimmed %}
The pictures are visible in <a href="{{ gallery_archive_url }}">the galleries</a>
and are downloadable.
<b>However, the agreement of the photographer and the persons present
on the photo is necessary before any republication on another platform. </b>
{% endblocktranslate %}
{% endblocktrans %}
</p>
<p>
{% blocktranslate trimmed %}
{% blocktrans trimmed %}
If you want a photo to be deleted, please let us know:
<a href="mailto:photos@crans.org?subject=[ABUS] Nouvelle requête" class="btn btn-secondary btn-sm">Abuse request</a>
{% endblocktranslate %}
{% endblocktrans %}
</p>
{% if not perms.photologue.add_photo %}
<p>
{% blocktranslate trimmed %}
{% blocktrans trimmed %}
If you want to obtain the right to upload pictures, please let us know:
<a href="mailto:photos@crans.org?subject=[Photographe] Demande de droits photographe" class="btn btn-secondary btn-sm">Become a photograph</a>
{% endblocktranslate %}
{% endblocktrans %}
</p>
{% endif %}
@ -51,14 +51,14 @@ SPDX-License-Identifier: GPL-3.0-or-later
<h3 class="mt-4">{% trans "Behind the scene" %}</h3>
<p>
{% blocktranslate trimmed %}
{% blocktrans trimmed %}
Because we value your privacy, we do not sell the data on this site,
unlike many free online platforms.
The dedicated server running this website is kindly hosted by the
<a href="https://www.crans.org/">Crans</a> at the ENS Paris-Saclay
basement.
It is not managed by the Crans. Current active administrators are:
{% endblocktranslate %}
{% endblocktrans %}
{% for user in superusers %} <code>{{ user.username }}</code>{% endfor %}.
{% trans "They should be contacted at" %}
<a href="mailto:photos@crans.org">photos@crans.org</a>.