Fix page kill notification
[platal.git] / templates / lists / members.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
5ddeb07c 3{* Copyright (C) 2003-2007 Polytechnique.org *}
0337d704 4{* http://opensource.polytechnique.org/ *}
5{* *}
6{* This program is free software; you can redistribute it and/or modify *}
7{* it under the terms of the GNU General Public License as published by *}
8{* the Free Software Foundation; either version 2 of the License, or *}
9{* (at your option) any later version. *}
10{* *}
11{* This program is distributed in the hope that it will be useful, *}
12{* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14{* GNU General Public License for more details. *}
15{* *}
16{* You should have received a copy of the GNU General Public License *}
17{* along with this program; if not, write to the Free Software *}
18{* Foundation, Inc., *}
19{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
20{* *}
21{**************************************************************************}
22
23
3eb25eb3 24{include file="lists/header_listes.tpl" on=members}
0337d704 25
26<h1>
bc4ad6aa 27 Liste {$platal->argv[1]}
0337d704 28</h1>
29
30<table class='tinybicol' cellpadding='0' cellspacing='0'>
31 <tr>
32 <td class='titre'> Adresse </td>
33 <td>{mailto address=$details.addr}</td>
34 </tr>
35 <tr>
36 <td class='titre'> Sujet </td>
92144f3e 37 <td>{$details.desc|smarty:nodefaults}</td>
0337d704 38 </tr>
39 <tr>
a7de4ef7 40 <td class='titre'> Visibilité </td>
41 <td>{if $details.priv eq 0}publique{elseif $details.priv eq 1}privée{else}admin{/if}</td>
0337d704 42 </tr>
43 <tr>
44 <td class='titre'> Diffusion </td>
a7de4ef7 45 <td>{if $details.diff eq 2}modérée{elseif $details.diff}restreinte{else}libre{/if}</td>
0337d704 46 </tr>
47 <tr>
48 <td class='titre'> Inscription </td>
a7de4ef7 49 <td>{if $details.ins}modérée{else}libre{/if}</td>
0337d704 50 </tr>
51 <tr>
52 <td class='titre'>Nb. membres:</td>
53 <td>{$nb_m|default:"0"}</td>
54 </tr>
55 <tr class="pair">
56 <td class="titre">Ton statut:</td>
57 <td>
58 {if $details.sub>1}
59 Tu es inscrit sur la liste.<br />
a7de4ef7 60 Te désinscrire :
61 <a href='{$platal->pl_self(1)}?del=1'>{icon name=cross title="me désinsiscrire"}</a>
0337d704 62 {elseif $details.sub eq 1}
63 Ta demande d'inscription est en cours de validation.
64 {else}
65 Tu n'es pas inscrit.<br />
66 Demander ton inscription :
7c0881fd 67 <a href="{$platal->pl_self(1)}?add=1">{icon name=add title="demander mon inscription"}</a>
0337d704 68 {/if}
69 </td>
70 </tr>
71</table>
72{if $details.info}
73<br />
74<table class='tinybicol' cellpadding='0' cellspacing='0'>
75 <tr><th colspan='2'>Informations sur la liste</th></tr>
76 <tr>
92144f3e 77 <td colspan='2'>{$details.info|smarty:nodefaults|nl2br}</td>
0337d704 78 </tr>
79</table>
80{/if}
81
82<h1>
a7de4ef7 83 modérateurs de la liste
0337d704 84</h1>
85
86{if $owners|@count}
87<table class='tinybicol' cellpadding='0' cellspacing='0'>
88 {foreach from=$owners item=xs key=promo}
8138ece0 89 {foreach from=$xs item=x name=all}
0337d704 90 <tr>
8138ece0 91 <td class='titre'>
92 {if $smarty.foreach.all.first}
93 {if $promo}{$promo}{else}non-X{/if}
94 {/if}
95 </td>
0337d704 96 <td>
8040946c 97 {if $promo && strpos($x.l, '@') === false}
8138ece0 98 <a href="profile/{$x.l}" class="popup2">{$x.n}</a>
8040946c 99 {elseif $x.x}
100 <a href="{$platal->ns}member/{$x.x}">{$x.n}</a>
30fc8ee7 101 {elseif $x.n}
102 {$x.n}
0337d704 103 {else}
8138ece0 104 {$x.l}
0337d704 105 {/if}
0337d704 106 </td>
8138ece0 107 {if $x.p}
108 <td class="right">
109 {$x.p}
110 </td>
111 {/if}
0337d704 112 </tr>
113 {/foreach}
8138ece0 114 {/foreach}
0337d704 115</table>
116{/if}
117
118<h1>
119 membres de la liste
120 {if $smarty.get.alpha}
d1ebc57a 121 (<a href='{$platal->pl_self(1)}'>trier par promo</a>)
0337d704 122 {else}
d1ebc57a 123 (<a href='{$platal->pl_self(1)}?alpha=1'>trier par nom</a>)
0337d704 124 {/if}
125</h1>
126
127{if $members|@count}
128<table class='bicol' cellpadding='0' cellspacing='0'>
129 {foreach from=$members item=xs key=promo}
8138ece0 130 {foreach from=$xs item=x name=all}
0337d704 131 <tr>
8138ece0 132 <td class='titre' style="width: 20%">
133 {if $smarty.foreach.all.first}
134 {if $promo}{$promo}{else}non-X{/if}
135 {/if}
136 </td>
0337d704 137 <td>
8040946c 138 {if $promo && strpos($x.l, '@') === false}
8138ece0 139 <a href="profile/{$x.l}" class="popup2">{$x.n}</a>
8040946c 140 {elseif $x.x}
141 <a href="{$platal->ns}member/{$x.x}">{$x.n}</a>
30fc8ee7 142 {elseif $x.n}
143 {$x.n}
0337d704 144 {else}
8138ece0 145 {$x.l}
0337d704 146 {/if}
0337d704 147 </td>
8138ece0 148 {if $x.p}
149 <td class="right">
150 {$x.p}
151 </td>
152 {/if}
0337d704 153 </tr>
154 {/foreach}
8138ece0 155 {/foreach}
0337d704 156</table>
157{/if}
158
159
a7de4ef7 160{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}