1 {**************************************************************************}
3 {* Copyright (C) 2003-2014 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
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. *}
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. *}
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 *}
21 {**************************************************************************}
23 <td style="width: 16px">
24 {if $liste.own && $liste.sub}
25 {icon name=wrench title="Modérateur"}
27 {icon name=error title="Modérateur mais non-membre"}
29 {icon name=weather_cloudy title="Liste privée"}
33 <a href='{$platal->ns}lists/members/{$liste.list}'>{$liste.list}</a>
36 {$liste.desc|smarty:nodefaults}<br/>
37 {if $liste.subscriptions|@count}
38 <strong>• Demandes d'inscription</strong><br />
39 {foreach from=$liste.subscriptions item=s}
40 <a href='{$platal->ns}lists/moderate/{$liste.list}?sadd={$s.id}&token={xsrf_token}'
41 onclick="return updateHtml('list_{$liste.list}', '{$platal->ns}lists/ajax/{$liste.list}?sadd={$s.id}&token={xsrf_token}');">
42 {icon name=add title="Accepter"}
44 <a href='{$platal->ns}lists/moderate/{$liste.list}?sid={$s.id}'>
45 {icon name=delete title="Refuser"}
49 <a href="profile/{$s.login}" class="popup2">{icon name=user_suit title="Afficher la fiche"}</a>
54 {if $liste.mails|@count}
55 <strong>• Demandes de modération</strong><br />
56 <span class="smaller">
57 {foreach from=$liste.mails item=m}
58 <a href='{$platal->ns}lists/moderate/{$liste.list}?mid={$m.id}&mok=1&token={xsrf_token}'
59 onclick="return updateHtml('list_{$liste.list}', '{$platal->ns}lists/ajax/{$liste.list}?mid={$m.id}&mok=1&token={xsrf_token}');">
60 {icon name=add title="Valider l'email"}
62 <a href='{$platal->ns}lists/moderate/{$liste.list}?mid={$m.id}&mdel=1&token={xsrf_token}'
63 onclick="return updateHtml('list_{$liste.list}', '{$platal->ns}lists/ajax/{$liste.list}?mid={$m.id}&mdel=1&token={xsrf_token}');">
64 {icon name=delete title="Spam"}
66 De : {$m.sender}<br />
67 <a href='{$platal->ns}lists/moderate/{$liste.list}?mid={$m.id}'>
68 {icon name=magnifier title="Voir le message"}
70 Sujet : {$m.subj|hdc|smarty:nodefaults|default:"[pas de sujet]"}<br />
76 {if $liste.diff eq 2}modérée{elseif $liste.diff}restreinte{else}libre{/if}
79 {if $liste.ins}modérée{else}libre{/if}
81 <td class='right'>{$liste.nbsub}</td>
84 <a href='{$platal->ns}lists?del={$liste.list}&token={xsrf_token}'
85 onclick="return updateHtml('list_{$liste.list}', '{$platal->ns}lists/ajax/{$liste.list}?unsubscribe=1&token={xsrf_token}');">
86 {icon name=cross title="me désinscrire"}
88 {elseif $liste.sub eq 1}
89 {icon name=flag_orange title='inscription en attente de modération'}
91 <a href='{$platal->ns}lists?add={$liste.list}&token={xsrf_token}'
92 onclick="return updateHtml('list_{$liste.list}', '{$platal->ns}lists/ajax/{$liste.list}?subscribe=1&token={xsrf_token}');">
93 {icon name=add title="m'inscrire"}
98 {* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}