diff --git a/docs/backup-photos b/docs/backup-photos new file mode 100644 index 0000000..9f00d93 --- /dev/null +++ b/docs/backup-photos @@ -0,0 +1,4 @@ +#!/bin/sh +# Backup script to put in /etc/cron.montly/ +rsync -avP /var/www/photos/photo21 /backup/ +sudo -u postgres pg_dump photo21 > /backup/pg_dump_photo21.sql diff --git a/photo21/locale/fr/LC_MESSAGES/django.po b/photo21/locale/fr/LC_MESSAGES/django.po index cc9f517..6ea60a9 100644 --- a/photo21/locale/fr/LC_MESSAGES/django.po +++ b/photo21/locale/fr/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-10-11 18:38+0000\n" +"POT-Creation-Date: 2021-10-13 13:52+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -30,19 +30,31 @@ msgstr "" msgid "Must end with `@crans.org` or `@ens-paris-saclay.fr`." msgstr "Doit finir par `@crans.org` ou `@ens-paris-saclay.fr`." -#: photo21/settings.py:143 +#: photo21/hashers.py:42 +msgid "algorithm" +msgstr "" + +#: photo21/hashers.py:43 +msgid "salt" +msgstr "" + +#: photo21/hashers.py:44 +msgid "hash" +msgstr "" + +#: photo21/settings.py:153 msgid "German" msgstr "" -#: photo21/settings.py:144 +#: photo21/settings.py:154 msgid "English" msgstr "" -#: photo21/settings.py:145 +#: photo21/settings.py:155 msgid "Spanish" msgstr "" -#: photo21/settings.py:146 +#: photo21/settings.py:156 msgid "French" msgstr "" @@ -90,6 +102,73 @@ msgid "" "soon. You can now drink a beer." msgstr "" +#: photo21/templates/account/email.html:6 +#: photo21/templates/account/email.html:14 +#: photo21/templates/socialaccount/connections.html:14 +msgid "E-mail Addresses" +msgstr "" + +#: photo21/templates/account/email.html:9 photo21/templates/base.html:51 +#: photo21/templates/socialaccount/connections.html:9 +msgid "Account" +msgstr "Compte" + +#: photo21/templates/account/email.html:17 +#: photo21/templates/socialaccount/connections.html:17 +msgid "Social connections" +msgstr "Connexions sociales" + +#: photo21/templates/account/email.html:23 +msgid "The following e-mail addresses are associated with your account:" +msgstr "" + +#: photo21/templates/account/email.html:34 +msgid "Verified" +msgstr "" + +#: photo21/templates/account/email.html:36 +msgid "Unverified" +msgstr "" + +#: photo21/templates/account/email.html:38 +msgid "Primary" +msgstr "" + +#: photo21/templates/account/email.html:44 +msgid "Make Primary" +msgstr "" + +#: photo21/templates/account/email.html:45 +msgid "Re-send Verification" +msgstr "" + +#: photo21/templates/account/email.html:46 +#: photo21/templates/socialaccount/connections.html:45 +msgid "Remove" +msgstr "" + +#: photo21/templates/account/email.html:51 +msgid "Warning:" +msgstr "" + +#: photo21/templates/account/email.html:51 +msgid "" +"You currently do not have any e-mail address set up. You should really add " +"an e-mail address so you can receive notifications, reset your password, etc." +msgstr "" + +#: photo21/templates/account/email.html:55 +msgid "Add E-mail Address" +msgstr "" + +#: photo21/templates/account/email.html:60 +msgid "Add E-mail" +msgstr "" + +#: photo21/templates/account/email.html:68 +msgid "Do you really want to remove the selected e-mail address?" +msgstr "" + #: photo21/templates/account/login.html:6 #: photo21/templates/account/login.html:11 #: photo21/templates/account/login.html:39 @@ -154,27 +233,50 @@ msgstr "Galeries" msgid "Manage" msgstr "Gestion" -#: photo21/templates/base.html:50 -msgid "Account" -msgstr "Compte" - -#: photo21/templates/base.html:59 +#: photo21/templates/base.html:60 msgid "Log out" msgstr "" -#: photo21/templates/base.html:69 +#: photo21/templates/base.html:70 msgid "Log in" msgstr "" -#: photo21/templates/base.html:78 +#: photo21/templates/base.html:79 msgid "Sign up" msgstr "Inscription" -#: photo21/templates/index.html:53 +#: photo21/templates/index.html:50 msgid "Connected as" msgstr "Connecté en tant que" -#: photologue_custom/models.py:39 +#: photo21/templates/socialaccount/connections.html:6 +msgid "Account Connections" +msgstr "" + +#: photo21/templates/socialaccount/connections.html:23 +msgid "" +"You can sign in to your account using any of the following third party " +"accounts:" +msgstr "" + +#: photo21/templates/socialaccount/connections.html:51 +msgid "" +"You currently have no social network accounts connected to this account." +msgstr "" + +#: photo21/templates/socialaccount/connections.html:54 +msgid "Add a 3rd Party Account" +msgstr "" + +#: photologue_custom/models.py:23 +msgid "start date" +msgstr "date de début" + +#: photologue_custom/models.py:28 +msgid "end date" +msgstr "date de fin" + +#: photologue_custom/models.py:51 msgid "owner" msgstr "propriétaire" @@ -205,16 +307,22 @@ msgstr "" msgid "No galleries were found." msgstr "" -#: photologue_custom/templates/photologue/gallery_detail.html:25 -#: photologue_custom/templates/photologue/includes/gallery_sample.html:9 +#: photologue_custom/templates/photologue/gallery_detail.html:35 +msgid "to" +msgstr "au" + +#: photologue_custom/templates/photologue/gallery_detail.html:49 +msgid "All pictures" +msgstr "Toutes les photos" + +#: photologue_custom/templates/photologue/gallery_detail.html:63 +msgid "Download all gallery" +msgstr "Télécharger toute la galerie" + #: photologue_custom/templates/photologue/photo_detail.html:10 msgid "Published" msgstr "" -#: photologue_custom/templates/photologue/gallery_detail.html:41 -msgid "Download all gallery" -msgstr "Télécharger toute la galerie" - #: photologue_custom/templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "" diff --git a/photo21/settings.py b/photo21/settings.py index f5aaaa0..08250a8 100644 --- a/photo21/settings.py +++ b/photo21/settings.py @@ -156,6 +156,9 @@ LANGUAGES = [ ('fr', _('French')), ] +# Allow more fields in URL to edit large galleries +DATA_UPLOAD_MAX_NUMBER_FIELDS = 10240 + # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.2/howto/static-files/ diff --git a/photo21/templates/account/email.html b/photo21/templates/account/email.html new file mode 100644 index 0000000..d7c472f --- /dev/null +++ b/photo21/templates/account/email.html @@ -0,0 +1,79 @@ +{% extends "account/base.html" %} +{% comment %} +SPDX-License-Identifier: GPL-2.0-or-later +{% endcomment %} +{% load i18n crispy_forms_tags %} +{% block head_title %}{% trans "E-mail Addresses" %}{% endblock %} + +{% block content %} +

{% trans "Account" %}

+
+ +
+ {% if user.emailaddress_set.all %} +

{% trans 'The following e-mail addresses are associated with your account:' %}

+ + + {% else %} +

{% trans 'Warning:'%} {% trans "You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc." %}

+ {% endif %} + + {% if can_add_email %} +

{% trans "Add E-mail Address" %}

+ +
+ {% csrf_token %} + {{ form|crispy }} + +
+ {% endif %} +
+
+ + +{% endblock %} diff --git a/photo21/templates/base.html b/photo21/templates/base.html index 97ecbb8..7d09a26 100644 --- a/photo21/templates/base.html +++ b/photo21/templates/base.html @@ -43,7 +43,8 @@ SPDX-License-Identifier: GPL-3.0-or-later