aboutsummaryrefslogtreecommitdiffstats
path: root/jm2l/templates
diff options
context:
space:
mode:
Diffstat (limited to 'jm2l/templates')
-rw-r--r--jm2l/templates/Participer.mako2
-rw-r--r--jm2l/templates/mail_html.mako8
-rw-r--r--jm2l/templates/mail_plain.mako8
3 files changed, 9 insertions, 9 deletions
diff --git a/jm2l/templates/Participer.mako b/jm2l/templates/Participer.mako
index 74d376d..de636a2 100644
--- a/jm2l/templates/Participer.mako
+++ b/jm2l/templates/Participer.mako
@@ -71,7 +71,7 @@ DicForm ={
Vous venez de recevoir un mail...
Ici, ... le texte à définir ...
</p>
- Cliquez sur ce lien pour finir votre inscription : <a href="/sign/jm2l/${link}">Mon lien</a>
+ Cliquez sur ce lien pour finir votre inscription : <a href="${request.route_path('bymail', hash=link)}">Mon lien</a>
% endif
<br>
<br>
diff --git a/jm2l/templates/mail_html.mako b/jm2l/templates/mail_html.mako
index 29f761e..b4facfe 100644
--- a/jm2l/templates/mail_html.mako
+++ b/jm2l/templates/mail_html.mako
@@ -1,16 +1,16 @@
## -*- coding: utf-8 -*-
-<%def name="Bienvenue(User)">
+<%def name="Bienvenue(request, User)">
<H4>JM2L</H4>
<p>
Bonjour ${User.prenom}.<br>
Vous venez de valider votre inscription sur le site des JM2L.<br>
-Voici <a href="http://jm2l.style-python.fr/sign/jm2l/${User.my_hash}">votre lien</a> pour vous connecter.<br>
+Voici <a href="${request.route_url('bymail', hash=User.my_hash)}">votre lien</a> pour vous connecter.<br>
Toute l'équipe vous souhaite une agréable visite !<br>
</p>
</%def> \
% if action=='Welcome':
-${self.Bienvenue(User)}
-% endif \ No newline at end of file
+${self.Bienvenue(request, User)}
+% endif
diff --git a/jm2l/templates/mail_plain.mako b/jm2l/templates/mail_plain.mako
index 7ab174b..a5ae5b4 100644
--- a/jm2l/templates/mail_plain.mako
+++ b/jm2l/templates/mail_plain.mako
@@ -1,15 +1,15 @@
## -*- coding: utf-8 -*-
-<%def name="Bienvenue(User)">
+<%def name="Bienvenue(request, User)">
Bonjour ${User.prenom}.
Vous venez de valider votre inscription sur le site des JM2L.
Voici votre le lien pour vous connecter à votre profil:
-http://jm2l.style-python.fr/sign/jm2l/${User.my_hash}
+${request.route_url('bymail', hash=User.my_hash)}
Toute l'équipe vous souhaite une très agréable visite !
</%def> \
% if action=='Welcome':
-${self.Bienvenue(User)}
-% endif \ No newline at end of file
+${self.Bienvenue(request, User)}
+% endif