X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fadmin%2Fmail_intervention.tpl;h=d1e423b9a3ef4b69fbff9dd4f39d458fb040c183;hb=bd4d80f0846bcc0dd943bd561c77680f18bae831;hp=c1526bfb580f0f51a2d145ebd6734bd6518c78d8;hpb=5b21237dd71df96849421c33d87298f15709d0d9;p=platal.git diff --git a/templates/admin/mail_intervention.tpl b/templates/admin/mail_intervention.tpl index c1526bf..d1e423b 100644 --- a/templates/admin/mail_intervention.tpl +++ b/templates/admin/mail_intervention.tpl @@ -25,7 +25,21 @@ {from full=#from#} {to addr=#to#} {subject text="INTERVENTION de $user"} -{elseif $mail_part eq 'text'} -{$query|regex_replace:"/[ \t]+/":" "} +{elseif $mail_part eq 'wiki'} +Le profil du camarade {$old.prenom} {$old.nom} ({$old.promo}) a été édité.\\ +Les champs suivants ont été changés : +{foreach from=$old item=value key=field} +{if $value neq $new[$field]} +* '''{$field}''' : {$value} -> {$new[$field]} {/if} +{/foreach} + +Et ceux qui n'ont pas changé : +{foreach from=$old item=value key=field} +{if $value eq $new[$field]} +* '''{$field}''' : {$value} +{/if} +{/foreach} +{/if} + {* vim:set et sw=2 sts=2 sws=2: *}