X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Flists%2Fmembers.tpl;h=df7d9093c95e4ca33cd3b2b549b575f10190dfa8;hb=cd78feae3e18c86a40ac99d8274cd23646b8d49c;hp=9b6a851b195a39bcbcea566cda36436525a3b829;hpb=ebd515f95f03f8a87f9b846d65e179b39a535222;p=platal.git diff --git a/templates/lists/members.tpl b/templates/lists/members.tpl index 9b6a851..df7d909 100644 --- a/templates/lists/members.tpl +++ b/templates/lists/members.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2008 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -29,42 +29,42 @@ - + - + - + - + - + - + - + @@ -86,7 +86,7 @@ {if $owners|@count}
Adresse Adresse : {mailto address=$details.addr}
Sujet Sujet : {$details.desc|smarty:nodefaults}
Visibilité Visibilité : {if $details.priv eq 0}publique{elseif $details.priv eq 1}privée{else}admin{/if}
Diffusion Diffusion : {if $details.diff eq 2}modérée{elseif $details.diff}restreinte{else}libre{/if}
Inscription Inscription : {if $details.ins}modérée{else}libre{/if}
Nb. membres:Nb. membres : {$nb_m|default:"0"}
Ton statut:Ton statut : {if $details.sub>1} Tu es inscrit sur la liste.
Te désinscrire : - {icon name=cross title="me désinsiscrire"} + {icon name=cross title="me désinscrire"} {elseif $details.sub eq 1} Ta demande d'inscription est en cours de validation. {else} Tu n'es pas inscrit.
Demander ton inscription : - {icon name=add title="demander mon inscription"} + {icon name=add title="demander mon inscription"} {/if}
{foreach from=$owners item=xs key=promo} - {foreach from=$xs item=x name=all} + {foreach from=$xs item=user name=all} - {if $x.p} + {if $user.p} {/if} @@ -125,10 +125,20 @@ {/if} + {if $members|@count}
{if $smarty.foreach.all.first} @@ -94,20 +94,20 @@ {/if} - {if $promo && strpos($x.l, '@') === false} - {if $x.b}{icon name=error}{/if} - {$x.n} - {elseif $x.x} - {$x.n} - {elseif $x.n} - {$x.n} + {if $promo && $user.x} + {if $user.b}{assign var=lostUsers value=true}{/if} + {profile user=$user.x promo=false} + {elseif $user.x} + {if $user.n|trim}{$x.n}{else}{$user.l}{/if} + {elseif $user.n} + {$user.n} {else} - {$x.l} + {$user.l} {/if} - {$x.p} + {$user.p}
- {foreach from=$members item=xs key=promo} - {foreach from=$xs item=x name=all} + {if $details.own || hasPerms('admin,groupadmin')} + + {/if} + {assign var=lostUsers value=false} + {foreach from=$members item=users key=promo} + {foreach from=$users item=user name=all} - {if $x.p} + {if $user.p} {/if} {/foreach} {/foreach}
+ + {icon name="page_excel" title="Télécharger la liste des membres"} + Télécharger la liste des membres au format Excel + +
{if $smarty.foreach.all.first} @@ -136,26 +146,35 @@ {/if} - {if $promo && strpos($x.l, '@') === false} - {if $x.b}{icon name=error}{/if} - {$x.n} - {elseif $x.x} - {$x.n} - {elseif $x.n} - {$x.n} + {if $promo && $user.x} + {if $user.b}{assign var=lostUsers value=true}{/if} + {profile user=$user.x promo=false} + {elseif $user.x} + {if $user.n|trim}{$x.n}{else}{$user.l}{/if} + {elseif $user.n} + {$user.n} {else} - {$x.l} + {$user.l} {/if} - {$x.p} + {$user.p}
+ +{if $lostUsers} +

+ {icon name=error} Un camarade signalé par ce symbole n'a plus d'adresse de redirection et ne peut donc + plus être contacté via son adresse polytechnique.org. Si tu connais sa nouvelle adresse, tu peux nous la communiquer en + cliquant sur le symbole. +

+{/if} + {/if}