Rennes rebranding
This commit is contained in:
parent
931c264a44
commit
aa348d2b04
8 changed files with 52 additions and 54 deletions
|
|
@ -13,8 +13,7 @@ class CustomSignupForm(SignupForm):
|
|||
|
||||
# Add description on email field
|
||||
self.fields["email"].help_text = _(
|
||||
"Please enter a valid email address ending with `@crans.org` or "
|
||||
"`@ens-paris-saclay.fr`."
|
||||
"Please enter a valid email address ending with `@ens-rennes.fr`"
|
||||
)
|
||||
|
||||
def clean_email(self):
|
||||
|
|
@ -22,10 +21,8 @@ class CustomSignupForm(SignupForm):
|
|||
Check that the email address ends with a trusted domain.
|
||||
"""
|
||||
email = super().clean_email()
|
||||
if not email.endswith("@crans.org") and not email.endswith(
|
||||
"@ens-paris-saclay.fr"
|
||||
):
|
||||
if not email.endswith("@ens-rennes.fr"):
|
||||
raise forms.ValidationError(
|
||||
_("Must end with `@crans.org` or `@ens-paris-saclay.fr`.")
|
||||
_("Must end with `@ens-rennes.fr`.")
|
||||
)
|
||||
return email
|
||||
|
|
|
|||
|
|
@ -39,5 +39,5 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||
<a class="link-secondary" href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a>
|
||||
</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>
|
||||
<!-- <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 %}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src 'self' data:; script-src 'self'; style-src 'self' 'unsafe-inline'; font-src 'self'">
|
||||
<meta http-equiv="Referrer-Policy" content="no-referrer">
|
||||
<title>{% block title %}{{ title }}{% endblock title %} - {{ request.site.name }}</title>
|
||||
<meta name="description" content="{% trans "The ENS Paris-Saclay pictures server." %}">
|
||||
<meta name="description" content="{% trans "The ENS Rennes pictures server." %}">
|
||||
<script src="{% static "theme.js" %}"></script>
|
||||
<link rel="stylesheet" href="{% static "bootstrap5/css/bootstrap.min.css" %}">
|
||||
<link rel="stylesheet" href="{% static "layout.css" %}">
|
||||
|
|
@ -118,16 +118,16 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||
{% if request.user.is_authenticated %}
|
||||
{% trans "Connected as" %} <code>{{ request.user.username }}</code> ·
|
||||
{% endif %}
|
||||
<a class="text-reset" href="https://gitlab.crans.org/bde/photo21/">{% trans "Source code" %}</a> ·
|
||||
<select title="language" name="language" class="lang-select">
|
||||
{% get_current_language as LANGUAGE_CODE %}
|
||||
{% get_available_languages as LANGUAGES %}
|
||||
{% for lang_code, lang_name in LANGUAGES %}
|
||||
<option value="{{ lang_code }}" {% if lang_code == LANGUAGE_CODE %}selected{% endif %}>
|
||||
{{ lang_name }} ({{ lang_code }})
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<a class="text-reset" href="https://github.com/krek0/photo21">{% trans "Source code" %}</a> ·
|
||||
<!-- <select title="language" name="language" class="lang-select"> -->
|
||||
<!-- {% get_current_language as LANGUAGE_CODE %} -->
|
||||
<!-- {% get_available_languages as LANGUAGES %} -->
|
||||
<!-- {% for lang_code, lang_name in LANGUAGES %} -->
|
||||
<!-- <option value="{{ lang_code }}" {% if lang_code == LANGUAGE_CODE %}selected{% endif %}> -->
|
||||
<!-- {{ lang_name }} ({{ lang_code }}) -->
|
||||
<!-- </option> -->
|
||||
<!-- {% endfor %} -->
|
||||
<!-- </select> -->
|
||||
<noscript><input type="submit"></noscript>
|
||||
</p>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||
<p>
|
||||
{% blocktrans trimmed %}
|
||||
This website aims to collect the pictures and movies taken in the student
|
||||
life of ENS Paris-Saclay or involving its students.
|
||||
life of ENS Rennes or involving its students.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
<p>
|
||||
|
|
@ -25,21 +25,16 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||
{% endblocktrans %}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% 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>
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
{% if not perms.photologue.add_photo %}
|
||||
{% if not perms.photologue.add_photo %}
|
||||
<p>
|
||||
{% 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>
|
||||
<a href="mailto:sinfonie@ens-rennes.fr?subject=[Photographe] Demande de droits photographe" class="btn btn-secondary btn-sm">Become a photograph</a>
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<h3>{% trans "Last galleries" %}</h3>
|
||||
<div class="row mb-2">
|
||||
{% for gallery in object_list %}
|
||||
|
|
@ -52,15 +47,15 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||
<h3 class="mt-4">{% trans "Behind the scene" %}</h3>
|
||||
<p>
|
||||
{% blocktrans trimmed %}
|
||||
This project if a fork of <a href="https://gitlab.crans.org/bde/photo21/">Photo21</a>.
|
||||
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:
|
||||
{% 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>.
|
||||
<!-- The dedicated server running this website is kindly hosted by -->
|
||||
<!-- <a href="https://sinfonie.org/">Sinfonie</a> at the ENS Rennes. -->
|
||||
<!-- Current active administrators are: -->
|
||||
<!-- {% 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>. -->
|
||||
</p>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue