photo26/photo21/templates/index.html
2022-03-01 11:39:48 +01:00

67 lines
2.6 KiB
HTML

{% extends "base.html" %}
{% comment %}
SPDX-License-Identifier: GPL-3.0-or-later
{% endcomment %}
{% load i18n %}
{% block title %}{% trans "Home" %}{% endblock %}
{% block content %}
<h2>{% trans "Welcome to the pictures server!" %}</h2>
<p>
{% blocktranslate trimmed %}
This website aims to collect the pictures and movies taken in the student
life of ENS Paris-Saclay-Saclay or involving its students.
{% endblocktranslate %}
</p>
<p>
{% url 'photologue:pl-gallery-archive' as gallery_archive_url %}
{% blocktranslate 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 %}
</p>
<p>
{% blocktranslate 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-dark btn-sm">Abuse request</a>
{% endblocktranslate %}
</p>
{% if not perms.photologue.add_photo %}
<p>
{% blocktranslate 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-dark btn-sm">Become a photograph</a>
{% endblocktranslate %}
</p>
{% endif %}
<h3>{% trans "Last galleries" %}</h3>
<div class="row mb-2">
{% for gallery in object_list %}
<div class="col-md-3">
{% include "photologue/includes/gallery_sample.html" %}
</div>
{% endfor %}
</div>
<hr/>
{% trans "Connected as" %} <code>{{ request.user.username }}</code>.
<form action="{% url 'set_language' %}" method="post" style="max-width: 15em;">
{% csrf_token %}
{% trans "Select another language:" %}
<select title="language" name="language" class="form-control form-control-sm" onchange="this.form.submit()">
{% 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>
</form>
{% endblock %}