From 08b1607392e91345cd3f9b2842d75256b95a20e4 Mon Sep 17 00:00:00 2001 From: Filippo Campi Date: Thu, 21 Mar 2024 15:36:50 +0100 Subject: [PATCH] Added fields for customize header and footer logos (#39) * [dev] Added field for customize header and footer logos + updated CHANGES * Update src/rer/newsletter/interfaces.py Sistemato l'italiano Co-authored-by: Piero Nicolli * Update src/rer/newsletter/interfaces.py Sistemato il titolo Co-authored-by: Piero Nicolli * Update src/rer/newsletter/interfaces.py sistemato il titolo Co-authored-by: Piero Nicolli * Update src/rer/newsletter/interfaces.py Sistemata la descrizione Co-authored-by: Piero Nicolli * zpretty + black + flake8 --------- Co-authored-by: Piero Nicolli --- .pre-commit-config.yaml | 10 ++++---- CHANGES.rst | 3 ++- .../channel/templates/channelhistoryview.pt | 8 +++++-- .../channel/templates/channelviewlet.pt | 4 +++- .../templates/mail_templates/active_user.pt | 11 +++++---- .../mail_templates/active_user_confirm.pt | 8 +++++-- .../templates/mail_templates/delete_user.pt | 14 ++++++----- .../browser/channel/templates/manageusers.pt | 24 +++++++++++++------ .../channel/templates/subscribechannel.pt | 10 +++++--- .../channel/templates/unsubscribechannel.pt | 10 +++++--- .../message/templates/messageviewlet.pt | 4 +++- src/rer/newsletter/interfaces.py | 23 ++++++++++++++++++ 12 files changed, 94 insertions(+), 35 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 333c675e..d518eb21 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,13 +8,13 @@ default_stages: [commit, push] repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 23.7.0 hooks: - id: black # args: ["--line-length=88", "--check", "--diff", "--force-exclude=migrations", "src/"] @@ -31,7 +31,7 @@ repos: types: [python] args: ["--max-complexity=30", "--max-line-length=79", "--ignore=DJ01,DJ08,W503,ANN101", "--exclude=docs/*", "src/", "setup.py"] - repo: https://github.com/pycqa/isort - rev: 5.10.1 + rev: 5.12.0 hooks: - id: isort name: isort (python) @@ -45,11 +45,11 @@ repos: language: pygrep types: [python] - repo: https://github.com/collective/zpretty - rev: 2.4.1 + rev: 3.1.0 hooks: - id: zpretty name: zpretty - repo: https://github.com/regebro/pyroma - rev: "3.2" + rev: "4.2" hooks: - id: pyroma diff --git a/CHANGES.rst b/CHANGES.rst index fbf8e5aa..b6eed9af 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,7 +5,8 @@ Changelog 3.0.2 (unreleased) ------------------ -- Nothing changed yet. +- Added fields for customize header and footer logos in newsletter. + [eikichi18] 3.0.1 (2023-09-06) diff --git a/src/rer/newsletter/browser/channel/templates/channelhistoryview.pt b/src/rer/newsletter/browser/channel/templates/channelhistoryview.pt index 6aa25ff2..17e1a335 100644 --- a/src/rer/newsletter/browser/channel/templates/channelhistoryview.pt +++ b/src/rer/newsletter/browser/channel/templates/channelhistoryview.pt @@ -31,8 +31,12 @@
- Cancella messaggio inviato diff --git a/src/rer/newsletter/browser/channel/templates/channelviewlet.pt b/src/rer/newsletter/browser/channel/templates/channelviewlet.pt index dbf54aba..e37fb89e 100644 --- a/src/rer/newsletter/browser/channel/templates/channelviewlet.pt +++ b/src/rer/newsletter/browser/channel/templates/channelviewlet.pt @@ -1,6 +1,8 @@
diff --git a/src/rer/newsletter/browser/channel/templates/mail_templates/active_user.pt b/src/rer/newsletter/browser/channel/templates/mail_templates/active_user.pt index 044599ca..2bfe6391 100644 --- a/src/rer/newsletter/browser/channel/templates/mail_templates/active_user.pt +++ b/src/rer/newsletter/browser/channel/templates/mail_templates/active_user.pt @@ -39,16 +39,19 @@ > - +

${title}

- -

Per confermare la tua richiesta di iscrizione a Newsletter ${title}, è necessario collegarsi entro 48 ore al seguente link: + +

Per confermare la tua richiesta di iscrizione a Newsletter ${title}, è necessario collegarsi entro 48 ore al seguente link:
${activationUrl}
diff --git a/src/rer/newsletter/browser/channel/templates/mail_templates/active_user_confirm.pt b/src/rer/newsletter/browser/channel/templates/mail_templates/active_user_confirm.pt index 0fff28d8..c7250ee6 100644 --- a/src/rer/newsletter/browser/channel/templates/mail_templates/active_user_confirm.pt +++ b/src/rer/newsletter/browser/channel/templates/mail_templates/active_user_confirm.pt @@ -37,14 +37,18 @@ > - +

${channel_name}

- +

La tua iscrizione alla newsletter ${channel_name} è stata effettuata con successo.

diff --git a/src/rer/newsletter/browser/channel/templates/mail_templates/delete_user.pt b/src/rer/newsletter/browser/channel/templates/mail_templates/delete_user.pt index 4bb07d7c..3e0f0ecb 100644 --- a/src/rer/newsletter/browser/channel/templates/mail_templates/delete_user.pt +++ b/src/rer/newsletter/browser/channel/templates/mail_templates/delete_user.pt @@ -38,18 +38,20 @@ > - +

${title}

- -

Clicca per confermare la cancellazione - ${activationUrl}

+ +

Clicca per confermare la cancellazione + ${activationUrl}


diff --git a/src/rer/newsletter/browser/channel/templates/manageusers.pt b/src/rer/newsletter/browser/channel/templates/manageusers.pt index a8dd2f6b..e22afeb1 100644 --- a/src/rer/newsletter/browser/channel/templates/manageusers.pt +++ b/src/rer/newsletter/browser/channel/templates/manageusers.pt @@ -40,7 +40,9 @@