{% 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 %}
- {% blocktrans trimmed %}
- If you want a photo to be deleted, please let us know:
- Abuse request
- {% endblocktrans %}
-
- {% if not perms.photologue.add_photo %}
+ {% if not perms.photologue.add_photo %}
{% blocktrans trimmed %}
If you want to obtain the right to upload pictures, please let us know:
- Become a photograph
+ Become a photograph
{% endblocktrans %}
{% endif %}
+
{% trans "Last galleries" %}
{% for gallery in object_list %}
@@ -52,15 +47,15 @@ SPDX-License-Identifier: GPL-3.0-or-later
{% trans "Behind the scene" %}
{% blocktrans trimmed %}
+ This project if a fork of Photo21.
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:
- {% endblocktrans %}
- {% for user in superusers %} {{ user.username }}{% endfor %}.
- {% trans "They should be contacted at" %}
- photos@crans.org.
+
+
+
+
+
+
+
{% endblock %}
diff --git a/photologue/static/gallery_detail.js b/photologue/static/gallery_detail.js
index b9fad3a..03c187a 100644
--- a/photologue/static/gallery_detail.js
+++ b/photologue/static/gallery_detail.js
@@ -34,20 +34,20 @@ lgContainer.addEventListener('lgAfterOpen', () => {
const downloadUrl = this.getAttribute('href');
- // Affichage de la modale stylisée
- Swal.fire({
- title: gettext('Download'),
- text: gettext("This image is free to download, but permission from the photographer and the people in the photo is required before republishing it on another website. Furthermore, it is good practice to credit L[ENS] and the photographers in any republications."),
- icon: 'info',
- showCancelButton: true,
- confirmButtonColor: '#3085d6',
- cancelButtonColor: '#d33',
- confirmButtonText: gettext('Download'),
- cancelButtonText: gettext('Cancel'),
- background: '#1a1a1a', // Optionnel : pour matcher le thème sombre de LightGallery
- color: '#fff'
- }).then((result) => {
- if (result.isConfirmed) {
+ // // Affichage de la modale stylisée
+ // Swal.fire({
+ // title: gettext('Download'),
+ // text: gettext("This image is free to download, but permission from the photographer and the people in the photo is required before republishing it on another website. Furthermore, it is good practice to credit L[ENS] and the photographers in any republications."),
+ // icon: 'info',
+ // showCancelButton: true,
+ // confirmButtonColor: '#3085d6',
+ // cancelButtonColor: '#d33',
+ // confirmButtonText: gettext('Download'),
+ // cancelButtonText: gettext('Cancel'),
+ // background: '#1a1a1a', // Optionnel : pour matcher le thème sombre de LightGallery
+ // color: '#fff'
+ // }).then((result) => {
+ // if (result.isConfirmed) {
// Si validé, on déclenche le téléchargement
const link = document.createElement('a');
link.href = downloadUrl;
@@ -55,8 +55,8 @@ lgContainer.addEventListener('lgAfterOpen', () => {
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
- }
- });
+ // }
+ // });
}, true); // Utilisation du mode capture pour intercepter avant le script interne
}
});
diff --git a/photologue/static/lightgallery/plugins/admin/lg-admin.js b/photologue/static/lightgallery/plugins/admin/lg-admin.js
index 5b198c9..aa0214d 100644
--- a/photologue/static/lightgallery/plugins/admin/lg-admin.js
+++ b/photologue/static/lightgallery/plugins/admin/lg-admin.js
@@ -13,6 +13,7 @@ class lgAdmin {
this.isStaff = document.querySelector('[name=is_staff]').value === "true";
this.userId = document.querySelector('[name=user_id]').value;
this.canResolveCensorship = document.querySelector('[name=can_resolve_censorship]').value === "true";
+ this.guestMode = document.querySelector('[name=guest_mode]').value === "true";
this.csrfToken = document.querySelector('[name=csrfmiddlewaretoken]').value;
this.photoId = 0;
return this;
@@ -33,7 +34,8 @@ class lgAdmin {
document.getElementById("lg-delete").addEventListener('click', this.onDelete.bind(this));
// Add button to report photo
- this.core.$toolbar.append(`${reportIcon}`);
+ this.core.$toolbar.append(`${deleteIcon}`);
+ document.getElementById("lg-report").style.display = 'none';
document.getElementById("lg-report").addEventListener('click', this.onReport.bind(this));
// Add button to restore a censored photo
@@ -53,6 +55,7 @@ class lgAdmin {
const ownerId = el ? el.dataset.ownerId : null;
const canDelete = this.isStaff || (ownerId && ownerId === this.userId);
document.getElementById("lg-delete").style.display = canDelete ? 'block' : 'none';
+ document.getElementById("lg-report").style.display = canDelete ? 'none' : 'block';
const isCensored = el ? el.dataset.isPublic === 'false' : false;
document.getElementById("lg-restore").style.display = (this.canResolveCensorship && isCensored) ? 'block' : 'none';
}
@@ -135,7 +138,7 @@ class lgAdmin {
// Event called when user click on report button
onReport(event) {
event.preventDefault();
- if(confirm("Are you sure to report this photo?")) {
+ if(confirm("Are you sure to ask removal for this photo?")) {
// Build form request
const photoId = this.photoId;
const currentIndex = this.core.index;
diff --git a/photologue/templates/photologue/gallery_detail.html b/photologue/templates/photologue/gallery_detail.html
index 155f86a..ea5c671 100755
--- a/photologue/templates/photologue/gallery_detail.html
+++ b/photologue/templates/photologue/gallery_detail.html
@@ -20,6 +20,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
+