X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fadmin%2Fuseredit.mail.tpl;h=ac1dd7459f2ef189fcacd97f523356d3410fdea4;hb=fe5ccad978199cfbe71c583280b999769a27c9b2;hp=0f968c03f688a219dc4274ce6960b6bccdcef795;hpb=c3c43c0ebe734e2b43b5d5fdb6010d08358bc34b;p=platal.git diff --git a/templates/admin/useredit.mail.tpl b/templates/admin/useredit.mail.tpl index 0f968c0..ac1dd74 100644 --- a/templates/admin/useredit.mail.tpl +++ b/templates/admin/useredit.mail.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2009 Polytechnique.org *} +{* Copyright (C) 2003-2011 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -26,24 +26,17 @@ {to addr=#to#} {subject text="INTERVENTION de $admin"} {elseif $mail_part eq 'wiki'} -{if $deletion} -L'utilisateur {$user} a été désinscrit de plat/al. -{else} -Le profil du camarade {$old.prenom} {$old.nom} ({$old.promo}) a été édité.\\ + +Le compte de l'utilisateur {$hruid} 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 from=$diff item=values key=field} +* '''{$field}''' : {$values.0} -> {$values.1} {/foreach} Et ceux qui n'ont pas changé : -{foreach from=$old item=value key=field} -{if $value eq $new[$field]} +{foreach from=$oldValues item=value key=field} * '''{$field}''' : {$value} -{/if} {/foreach} {/if} -{/if} {* vim:set et sw=2 sts=2 sws=2: *}