X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fcarnet%2Fnotif.mail.tpl;h=22f0675208cbbce41c36bb0d244c918109281e40;hb=09c8f0ce149bf279767fbb6a7089e69df434dcca;hp=3f132e26c657cb6fbd9c9cd859d740b4fcfcb34f;hpb=dd9bac8f7903e9924525ad8db3e38650ff5ad1b6;p=platal.git diff --git a/templates/carnet/notif.mail.tpl b/templates/carnet/notif.mail.tpl index 3f132e2..22f0675 100644 --- a/templates/carnet/notif.mail.tpl +++ b/templates/carnet/notif.mail.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2008 Polytechnique.org *} +{* Copyright (C) 2003-2011 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -27,26 +27,26 @@ {if isset(#replyto#)}{add_header name='Reply-To' value=#replyto#}{/if} {if isset(#retpath#)}{add_header name='Return-Path' value=#retpath#}{/if} {elseif $mail_part eq 'wiki'} -{if $u.sexe}Chère{else}Cher{/if} {$u.prenom}, +{if $sex}Chère{else}Cher{/if} {$yourself}, Voici les événements survenus dans la semaine écoulée, et depuis ta dernière visite sur le site. Tu trouveras les mêmes informations sur [[https://www.polytechnique.org/carnet/panel|cette page]]. -{foreach from=$u.data key=cid item=d} +{foreach from=$notifs item=cat} +{$cat.title} : -!{if $d|@count eq 1}{$cats[$cid].mail_sg}{else}{$cats[$cid].mail}{/if} : - -{foreach from=$d key=promo item=x} -* (X{$x.promo}), le {$x.date|date_format:"%d %b %Y"}, [[https://www.polytechnique.org/profile/private/{$x.bestalias}|{$x.prenom} {$x.nom}]] +{foreach from=$cat.users item=user} +{assign var=profile value=$user->profile()} +{if !$profile->isDead()} +* Le {$cat.operation->getDate($user)|date_format:"%d %B %Y"}, [[https://www.polytechnique.org/profile/private/{$profile->hrid()}|{$profile->fullname(true)}]] +{/if} {/foreach} {/foreach} --- -L'Équipe de Polytechnique.org - -'''''Note :''''' Tu reçois ce mail ce mail car tu as activé la notification automatique par mail des événements que tu surveilles.\\ -Tu peux changer cette options sur la [[https://www.polytechnique.org/carnet/notifs|page de configuration des notifications]]. +{include file="include/signature.mail.tpl"} +''Note :'' Tu reçois cet email car tu as activé la notification automatique par email des événements que tu surveilles.\\ +Tu peux changer cette option sur la [[https://www.polytechnique.org/carnet/notifs|page de configuration des notifications]]. {/if}