Commit | Line | Data |
---|---|---|
7743e0e5 | 1 | {**************************************************************************} |
2 | {* *} | |
9f5bd98e | 3 | {* Copyright (C) 2003-2010 Polytechnique.org *} |
7743e0e5 | 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 | <td style="width: 16px"> | |
24 | {if $liste.own && $liste.sub} | |
a7de4ef7 | 25 | {icon name=wrench title="Modérateur"} |
7743e0e5 | 26 | {elseif $liste.own} |
a7de4ef7 | 27 | {icon name=error title="Modérateur mais non-membre"} |
7743e0e5 | 28 | {elseif $liste.priv} |
a7de4ef7 | 29 | {icon name=weather_cloudy title="Liste privée"} |
7743e0e5 | 30 | {/if} |
31 | </td> | |
32 | <td> | |
aab2ffdd | 33 | <a href='{$platal->ns}lists/members/{$liste.list}'>{$liste.list}</a> |
7743e0e5 | 34 | </td> |
35 | <td> | |
92144f3e | 36 | {$liste.desc|smarty:nodefaults}<br/> |
7743e0e5 | 37 | {if $liste.subscriptions|@count} |
38 | <strong>• Demandes d'inscription</strong><br /> | |
39 | {foreach from=$liste.subscriptions item=s} | |
2669eb7d VZ |
40 | <a href='{$platal->ns}lists/moderate/{$liste.list}?sadd={$s.id}&token={xsrf_token}' |
41 | onclick="return (is_IE || Ajax.update_html('list_{$liste.list}', '{$platal->ns}lists/ajax/{$liste.list}?sadd={$s.id}&token={xsrf_token}'));"> | |
7743e0e5 | 42 | {icon name=add title="Accepter"} |
43 | </a> | |
44 | <a href='{$platal->ns}lists/moderate/{$liste.list}?sid={$s.id}'> | |
45 | {icon name=delete title="Refuser"} | |
46 | </a> | |
47 | {$s.name} | |
48 | {if $s.login} | |
49 | <a href="profile/{$s.login}" class="popup2">{icon name=user_suit title="Afficher la fiche"}</a> | |
50 | {/if} | |
51 | <br /> | |
52 | {/foreach} | |
53 | {/if} | |
54 | {if $liste.mails|@count} | |
a7de4ef7 | 55 | <strong>• Demandes de modération</strong><br /> |
7743e0e5 | 56 | <span class="smaller"> |
57 | {foreach from=$liste.mails item=m} | |
2669eb7d VZ |
58 | <a href='{$platal->ns}lists/moderate/{$liste.list}?mid={$m.id}&mok=1&token={xsrf_token}' |
59 | onclick="return (is_IE || Ajax.update_html('list_{$liste.list}', '{$platal->ns}lists/ajax/{$liste.list}?mid={$m.id}&mok=1&token={xsrf_token}'));"> | |
faefdbb7 | 60 | {icon name=add title="Valider l'email"} |
7743e0e5 | 61 | </a> |
2669eb7d VZ |
62 | <a href='{$platal->ns}lists/moderate/{$liste.list}?mid={$m.id}&mdel=1&token={xsrf_token}' |
63 | onclick="return (is_IE || Ajax.update_html('list_{$liste.list}', '{$platal->ns}lists/ajax/{$liste.list}?mid={$m.id}&mdel=1&token={xsrf_token}'));"> | |
414e606a | 64 | {icon name=delete title="Spam"} |
7743e0e5 | 65 | </a> |
e8439508 | 66 | De : {$m.sender}<br /> |
7743e0e5 | 67 | <a href='{$platal->ns}lists/moderate/{$liste.list}?mid={$m.id}'> |
68 | {icon name=magnifier title="Voir le message"} | |
69 | </a> | |
e8439508 | 70 | Sujet : {$m.subj|hdc|smarty:nodefaults|default:"[pas de sujet]"}<br /> |
7743e0e5 | 71 | {/foreach} |
72 | </span> | |
73 | {/if} | |
74 | </td> | |
75 | <td class='center'> | |
a7de4ef7 | 76 | {if $liste.diff eq 2}modérée{elseif $liste.diff}restreinte{else}libre{/if} |
7743e0e5 | 77 | </td> |
78 | <td class='center'> | |
a7de4ef7 | 79 | {if $liste.ins}modérée{else}libre{/if} |
7743e0e5 | 80 | </td> |
81 | <td class='right'>{$liste.nbsub}</td> | |
82 | <td class='right'> | |
83 | {if $liste.sub eq 2} | |
2669eb7d VZ |
84 | <a href='{$platal->ns}lists?del={$liste.list}&token={xsrf_token}' |
85 | onclick="return (is_IE || Ajax.update_html('list_{$liste.list}', '{$platal->ns}lists/ajax/{$liste.list}?unsubscribe=1&token={xsrf_token}'));"> | |
a7de4ef7 | 86 | {icon name=cross title="me désinscrire"} |
7743e0e5 | 87 | </a> |
88 | {elseif $liste.sub eq 1} | |
a7de4ef7 | 89 | {icon name=flag_orange title='inscription en attente de modération'} |
7743e0e5 | 90 | {else} |
2669eb7d VZ |
91 | <a href='{$platal->ns}lists?add={$liste.list}&token={xsrf_token}' |
92 | onclick="return (is_IE || Ajax.update_html('list_{$liste.list}', '{$platal->ns}lists/ajax/{$liste.list}?subscribe=1&token={xsrf_token}'));"> | |
7743e0e5 | 93 | {icon name=add title="m'inscrire"} |
94 | </a> | |
95 | {/if} | |
96 | </td> | |
97 | ||
a7de4ef7 | 98 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |