From c136bf7df438c53a7f96cd179795f6223d50bd44 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Wed, 22 Sep 2021 22:12:03 +0200 Subject: [PATCH] Add text content to index and login --- photo21/locale/fr/LC_MESSAGES/django.po | 6 ++- photo21/templates/index.html | 45 ++++++++++++++++++++--- photo21/templates/registration/login.html | 5 ++- 3 files changed, 48 insertions(+), 8 deletions(-) diff --git a/photo21/locale/fr/LC_MESSAGES/django.po b/photo21/locale/fr/LC_MESSAGES/django.po index 2ce643a..d611cf3 100644 --- a/photo21/locale/fr/LC_MESSAGES/django.po +++ b/photo21/locale/fr/LC_MESSAGES/django.po @@ -101,7 +101,7 @@ msgstr "" msgid "Log in" msgstr "" -#: photo21/templates/index.html:22 +#: photo21/templates/index.html:42 msgid "Connected as" msgstr "Connecté en tant que" @@ -130,6 +130,10 @@ msgstr "" msgid "Forgotten your password or username?" msgstr "" +#: photo21/templates/registration/login.html:43 +msgid "If any problem, please contact the server owners at" +msgstr "En cas de problème, contactez les administrateurs à" + #: photo21/templates/registration/password_change_done.html:13 msgid "Your password was changed." msgstr "" diff --git a/photo21/templates/index.html b/photo21/templates/index.html index 8270ca9..056d4ae 100644 --- a/photo21/templates/index.html +++ b/photo21/templates/index.html @@ -5,9 +5,47 @@ SPDX-License-Identifier: GPL-3.0-or-later {% load i18n %} {% block content %} -
+

Bienvenue sur le serveur photos !

+

+ Ce site à pour objectif de recenser les photos et films pris dans la vie + associative de l'ENS Paris-Saclay ou impliquant des + Kchanais. +

+

+ Les photos sont visibles dans les galeries et téléchargeables, toutefois, + l'accord de la ou du photographe et des personnes présentes sur la + photo est nécessaire avant toute republication sur un autre site. +

+ + Si vous souhaitez qu'une photo soit supprimer, signalez le nous : + Signaler un abus + +

Nouveau venu ?

+

+ Si tu accèdes à ce service depuis le réseau du + Crans, tu peux naviguer sur le + serveur comme tu le souhaites. + Par contre dès que tu essairas d'accéder au serveur photos depuis une + connexion Internet externe tu devras te créer un compte utilisateur. +

+ +

Participez et faites vivre le serveur photos :

+ + +
+ + {% if request.user.is_authenticated %} + {% trans "Connected as" %} {{ request.user.username }}. + {% endif %} + {% csrf_token %} - {% get_current_language as LANGUAGE_CODE %} {% get_available_languages as LANGUAGES %} {% for lang_code, lang_name in LANGUAGES %} @@ -18,7 +56,4 @@ SPDX-License-Identifier: GPL-3.0-or-later
- {% if request.user.is_authenticated %} - {% trans "Connected as" %} {{ request.user.username }} - {% endif %} {% endblock %} \ No newline at end of file diff --git a/photo21/templates/registration/login.html b/photo21/templates/registration/login.html index 8d6a0aa..ac23d00 100644 --- a/photo21/templates/registration/login.html +++ b/photo21/templates/registration/login.html @@ -10,7 +10,7 @@ SPDX-License-Identifier: GPL-2.0-or-later {% endblock %} {% block content %} -
+

{% trans "Log in" %}

@@ -36,8 +36,9 @@ SPDX-License-Identifier: GPL-2.0-or-later {{ form }} {% trans 'Forgotten your password or username?' %} + class="badge bg-light text-dark">{% trans 'Forgotten your password or username?' %}
+

{% trans "If any problem, please contact the server owners at" %} photos[at]crans.org.

{% endblock %}