Add text content to index and login
This commit is contained in:
parent
6a6892b560
commit
c136bf7df4
3 changed files with 48 additions and 8 deletions
|
|
@ -101,7 +101,7 @@ msgstr ""
|
||||||
msgid "Log in"
|
msgid "Log in"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: photo21/templates/index.html:22
|
#: photo21/templates/index.html:42
|
||||||
msgid "Connected as"
|
msgid "Connected as"
|
||||||
msgstr "Connecté en tant que"
|
msgstr "Connecté en tant que"
|
||||||
|
|
||||||
|
|
@ -130,6 +130,10 @@ msgstr ""
|
||||||
msgid "Forgotten your password or username?"
|
msgid "Forgotten your password or username?"
|
||||||
msgstr ""
|
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
|
#: photo21/templates/registration/password_change_done.html:13
|
||||||
msgid "Your password was changed."
|
msgid "Your password was changed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,47 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<form action="{% url 'set_language' %}" method="post" class="form-inline">
|
<h2>Bienvenue sur le serveur photos !</h2>
|
||||||
|
<p>
|
||||||
|
Ce site à pour objectif de recenser les photos et films pris dans la vie
|
||||||
|
associative de l'ENS Paris-Saclay ou impliquant des
|
||||||
|
<b>K</b>chanais.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Les photos sont visibles dans les galeries et téléchargeables, toutefois,
|
||||||
|
<b>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.</b>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
Si vous souhaitez qu'une photo soit supprimer, signalez le nous :
|
||||||
|
<a href="mailto:photos@crans.org?subject=[ABUS] Nouvelle requête" class="btn btn-warning btn-sm">Signaler un abus</a>
|
||||||
|
|
||||||
|
<h3>Nouveau venu ?</h3>
|
||||||
|
<p>
|
||||||
|
Si tu accèdes à ce service depuis le réseau du
|
||||||
|
<a href="https://www.crans.org/">Crans</a>, 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.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>Participez et faites vivre le serveur photos :</h3>
|
||||||
|
<ul>
|
||||||
|
<li>Devenez photographe en vous créant un compte ou en upgradant votre compte utilisateur</li>
|
||||||
|
<li>Reportez-nous toute anomalie dans la nouvelle interface ou toute difficulté rencontrée : fautes d'orthographes, bugs, mauvaise ergonomie…</li>
|
||||||
|
<li>Envoyez-nous vos suggestions à <a href="mailto:photos@crans.org">photos@crans.org</a>.</li>
|
||||||
|
<li>Si l'amélioration ou la gestion du serveur vous intéresse et pour en savoir plus, <a href="mailto:photos@crans.org">contactez-nous</a>.</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<hr/>
|
||||||
|
|
||||||
|
{% if request.user.is_authenticated %}
|
||||||
|
{% trans "Connected as" %} <code>{{ request.user.username }}</code>.
|
||||||
|
{% endif %}
|
||||||
|
<form action="{% url 'set_language' %}" method="post" style="max-width: 10em;">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<select title="language" name="language" class="form-control form-control-sm language" onchange="this.form.submit()">
|
Changer la langue :
|
||||||
|
<select title="language" name="language" class="form-control form-control-sm" onchange="this.form.submit()">
|
||||||
{% get_current_language as LANGUAGE_CODE %}
|
{% get_current_language as LANGUAGE_CODE %}
|
||||||
{% get_available_languages as LANGUAGES %}
|
{% get_available_languages as LANGUAGES %}
|
||||||
{% for lang_code, lang_name in LANGUAGES %}
|
{% for lang_code, lang_name in LANGUAGES %}
|
||||||
|
|
@ -18,7 +56,4 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
</select>
|
</select>
|
||||||
<noscript><input type="submit"></noscript>
|
<noscript><input type="submit"></noscript>
|
||||||
</form>
|
</form>
|
||||||
{% if request.user.is_authenticated %}
|
|
||||||
{% trans "Connected as" %} {{ request.user.username }}
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
@ -10,7 +10,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="card bg-light mx-auto" style="max-width: 30rem;">
|
<div class="card bg-light mx-auto" style="max-width: 35rem;">
|
||||||
<h3 class="card-header text-center">
|
<h3 class="card-header text-center">
|
||||||
{% trans "Log in" %}
|
{% trans "Log in" %}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -36,8 +36,9 @@ SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
{{ form }}
|
{{ form }}
|
||||||
<input type="submit" value="{% trans 'Log in' %}" class="btn btn-primary btn-block btn-lg">
|
<input type="submit" value="{% trans 'Log in' %}" class="btn btn-primary btn-block btn-lg">
|
||||||
<a href="{% url 'password_reset' %}"
|
<a href="{% url 'password_reset' %}"
|
||||||
class="badge badge-light">{% trans 'Forgotten your password or username?' %}</a>
|
class="badge bg-light text-dark">{% trans 'Forgotten your password or username?' %}</a>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<p class="small text-center mt-1">{% trans "If any problem, please contact the server owners at" %} <code>photos[at]crans.org</code>.</p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue