From 28eb2cb949a086caf483c812f2b730465e419bff Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Mon, 26 Dec 2022 00:13:53 +0100 Subject: [PATCH] Fix Django 2.2 compatibility --- photo21/templates/index.html | 20 +++++++++---------- .../photologue/photo_confirm_delete.html | 4 ++-- .../photologue/photo_confirm_report.html | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/photo21/templates/index.html b/photo21/templates/index.html index 16e2c1b..b7fa2e9 100644 --- a/photo21/templates/index.html +++ b/photo21/templates/index.html @@ -10,33 +10,33 @@ SPDX-License-Identifier: GPL-3.0-or-later {% block content %}

{% trans "Welcome to the pictures server!" %}

- {% 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 %}

{% url 'photologue:pl-gallery-archive' as gallery_archive_url %} - {% blocktranslate trimmed %} + {% blocktrans trimmed %} The pictures are visible in the galleries and are downloadable. However, the agreement of the photographer and the persons present on the photo is necessary before any republication on another platform. - {% endblocktranslate %} + {% endblocktrans %}

- {% blocktranslate trimmed %} + {% blocktrans trimmed %} If you want a photo to be deleted, please let us know: Abuse request - {% endblocktranslate %} + {% endblocktrans %}

{% if not perms.photologue.add_photo %}

- {% blocktranslate trimmed %} + {% blocktrans trimmed %} If you want to obtain the right to upload pictures, please let us know: Become a photograph - {% endblocktranslate %} + {% endblocktrans %}

{% endif %} @@ -51,14 +51,14 @@ SPDX-License-Identifier: GPL-3.0-or-later

{% trans "Behind the scene" %}

- {% 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 Crans at the ENS Paris-Saclay basement. It is not managed by the Crans. Current active administrators are: - {% endblocktranslate %} + {% endblocktrans %} {% for user in superusers %} {{ user.username }}{% endfor %}. {% trans "They should be contacted at" %} photos@crans.org. diff --git a/photologue/templates/photologue/photo_confirm_delete.html b/photologue/templates/photologue/photo_confirm_delete.html index dfab897..d43003a 100644 --- a/photologue/templates/photologue/photo_confirm_delete.html +++ b/photologue/templates/photologue/photo_confirm_delete.html @@ -14,9 +14,9 @@ SPDX-License-Identifier: GPL-3.0-or-later

{% trans "Delete confirmation" %}

{% csrf_token %}

- {% blocktranslate trimmed %} + {% blocktrans trimmed %} Are you sure you want to delete {{ object }}? - {% endblocktranslate %} + {% endblocktrans %}

{{ form }} diff --git a/photologue/templates/photologue/photo_confirm_report.html b/photologue/templates/photologue/photo_confirm_report.html index a151dda..979c7de 100644 --- a/photologue/templates/photologue/photo_confirm_report.html +++ b/photologue/templates/photologue/photo_confirm_report.html @@ -14,10 +14,10 @@ SPDX-License-Identifier: GPL-3.0-or-later

{% trans "Report confirmation" %}

{% csrf_token %}

- {% blocktranslate trimmed %} + {% blocktrans trimmed %} Are you sure you want to report {{ object }}? This photo will no longer be public, and administrators will be notified. - {% endblocktranslate %} + {% endblocktrans %}