diff --git a/src/Controller/DefaultController.php b/src/Controller/DefaultController.php index 6933d5f..0412c62 100644 --- a/src/Controller/DefaultController.php +++ b/src/Controller/DefaultController.php @@ -38,6 +38,7 @@ class DefaultController extends AbstractController { $templateVars = [ 'owner' => $founduser, 'polls' => $polls, + 'title' => 'Mes sondages - '.$email, ]; $message = ( new Swift_Message( 'Framadate - mes sondages' ) ) diff --git a/templates/base.html.twig b/templates/base.html.twig index a1b8fd8..34dd070 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -2,7 +2,7 @@ - {% block title %}Welcome!{% endblock %} + {% block title %}Framdate{% endblock %} {% block stylesheets %}{% endblock %} diff --git a/templates/email-base.html.twig b/templates/email-base.html.twig new file mode 100644 index 0000000..2965a4a --- /dev/null +++ b/templates/email-base.html.twig @@ -0,0 +1,38 @@ +
+ + +
+ {% block title %} + {% if title is defined %} +

{{ title }}

+ {% else %} +

Framadate - email

+ {% endif %} +
+ {% endblock %} +
+
+ + {% block content %} + {% endblock %} +
+ + +
diff --git a/templates/emails/author-mail.html.twig b/templates/emails/author-mail.html.twig index 3877200..4adec7e 100644 --- a/templates/emails/author-mail.html.twig +++ b/templates/emails/author-mail.html.twig @@ -1,9 +1,15 @@ {#[Framadate][Réservé à l'auteur] Sondage: TESSSSSSSSSST#} Ce message ne doit PAS être diffusé aux sondés. Il est réservé à l'auteur du sondage. - +
Vous pouvez modifier ce sondage à l'adresse suivante : +
+{{ url }} +
+Pour partager votre sondage aux participants, utilisez son lien d'accès public. +
-https://framadate.org/NGutN7jB9vtoGOEjCfUJWBwr/admin +{% if is_password_protected %} + Ce sondage est protégé par un mot de passe, n'oubliez pas de le communiquer à vos participants. +{% else %} -Merci de votre confiance. -Framadate +{% endif %} diff --git a/templates/emails/comment-notification-mail.html.twig b/templates/emails/comment-notification-mail.html.twig index f59fb22..e974021 100644 --- a/templates/emails/comment-notification-mail.html.twig +++ b/templates/emails/comment-notification-mail.html.twig @@ -1,6 +1,4 @@ {#[Framadate] Notification d'un sondage : TESSSSSSSSSST#} -smoi vient de rédiger un commentaire. -Vous pouvez retrouver votre sondage avec le lien suivant : https://framadate.org/NGutN7jB9vtoGOEjCfUJWBwr/admin - -Merci de votre confiance. -Framadate +{{ pseudo }} vient de rédiger un commentaire. +
+Vous pouvez retrouver votre sondage avec le lien suivant : {{ url }} diff --git a/templates/emails/creation-mail.html.twig b/templates/emails/creation-mail.html.twig index 31846b1..2275545 100644 --- a/templates/emails/creation-mail.html.twig +++ b/templates/emails/creation-mail.html.twig @@ -1,11 +1,11 @@ {#[Framadate][Pour diffusion aux sondés] Sondage: TESSSSSSSSSST#} -Ceci est le message qui doit être envoyé aux sondés. -Vous pouvez maintenant transmettre ce message à toutes les personnes susceptibles de participer au vote. +Ceci est le message qui doit être envoyé aux sondés.
+Vous pouvez maintenant transmettre ce message à toutes les personnes susceptibles de participer au vote.
+
+hah vient de créer un sondage intitulé : "{{ title }}".
+Merci de bien vouloir participer au sondage à l'adresse suivante :
+ + {{ url }} + -hah vient de créer un sondage intitulé : "TESSSSSSSSSST". -Merci de bien vouloir participer au sondage à l'adresse suivante : -https://framadate.org/heh-le-test - -Merci de votre confiance. -Framadate diff --git a/templates/emails/expiration-mail.html.twig b/templates/emails/expiration-mail.html.twig index 606e250..468630f 100644 --- a/templates/emails/expiration-mail.html.twig +++ b/templates/emails/expiration-mail.html.twig @@ -1,8 +1,5 @@ {#[Framadate][expiration] Sondage: TESSSSSSSSSST#} Ce sondage va bientôt expirer dans 1 jour, il ne sera plus possible d'y voter. -Dans 31 jours il sera supprimé. Vous pouvez exporter ses données àtotmoment en vous rendant à ce lien pour l'administrer. +Dans 31 jours il sera supprimé. Vous pouvez exporter ses données à tout moment en vous rendant à ce lien pour l'administrer: -https://framadate.org/heh-le-test - -Merci de votre confiance. -Framadate +{{ url }} diff --git a/templates/emails/footer.html.twig b/templates/emails/footer.html.twig index 0fda947..3438b32 100644 --- a/templates/emails/footer.html.twig +++ b/templates/emails/footer.html.twig @@ -1,4 +1,20 @@ -Merci de votre confiance. - - Framadate - + diff --git a/templates/emails/modification-notification-mail.html.twig b/templates/emails/modification-notification-mail.html.twig index c2c2b6e..2e98e6e 100644 --- a/templates/emails/modification-notification-mail.html.twig +++ b/templates/emails/modification-notification-mail.html.twig @@ -1,5 +1,4 @@ {#[Framadate] Participation au sondage : TESSSSSSSSSST#} -Quelqu'un vient de modifier votre sondage accessible au lien suivant https://framadate.org/NGutN7jB9vtoGOEjCfUJWBwr/admin. - -Merci de votre confiance. -Framadate +Quelqu'un vient de modifier votre sondage accessible au lien suivant: +
+{{ url }} diff --git a/templates/emails/owner-list.html.twig b/templates/emails/owner-list.html.twig index f1b44a0..db4ad4e 100644 --- a/templates/emails/owner-list.html.twig +++ b/templates/emails/owner-list.html.twig @@ -1,70 +1,74 @@ {#[Framadate][Réservé à l'auteur] Sondage: TESSSSSSSSSST#} -

+{% extends 'email-base.html.twig' %} +{% block content %} - Voici la liste des {{ polls|length }} sondages - - Framadate - - que vous avez créé. -

-
- Si vous n'avez pas demandé à recevoir cet email, veuillez en informer les administrateurs du site Framadate. -
-
- -{% include 'footer.html.twig' %} + +{% endblock %}