Convert source code to UTF-8
[platal.git] / templates / lists / liste.inc.tpl
CommitLineData
7743e0e5 1{**************************************************************************}
2{* *}
5ddeb07c 3{* Copyright (C) 2003-2007 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>
33 <a href='{$platal->ns}lists/members/{$liste.list}'>{$liste.list}</a>
34</td>
35<td>
36 {$liste.desc}<br/>
37 {if $liste.subscriptions|@count}
38 <strong>&bull; Demandes d'inscription</strong><br />
39 {foreach from=$liste.subscriptions item=s}
40 <a href='{$platal->ns}lists/moderate/{$liste.list}?sadd={$s.id}'
38d1f2d4 41 onclick="return (is_IE || Ajax.update_html('list_{$liste.list}', '{$platal->ns}lists/ajax/{$liste.list}?sadd={$s.id}'));">
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>&bull; Demandes de modération</strong><br />
7743e0e5 56 <span class="smaller">
57 {foreach from=$liste.mails item=m}
58 <a href='{$platal->ns}lists/moderate/{$liste.list}?mid={$m.id}&amp;mok=1'
38d1f2d4 59 onclick="return (is_IE || Ajax.update_html('list_{$liste.list}', '{$platal->ns}lists/ajax/{$liste.list}?mid={$m.id}&amp;mok=1'));">
7743e0e5 60 {icon name=add title="Valider le mail"}
61 </a>
62 <a href='{$platal->ns}lists/moderate/{$liste.list}?mid={$m.id}&amp;mdel=1'
38d1f2d4 63 onclick="return (is_IE || Ajax.update_html('list_{$liste.list}', '{$platal->ns}lists/ajax/{$liste.list}?mid={$m.id}&amp;mdel=1'));">
a7de4ef7 64 {icon name=delete title="Détruire"}
7743e0e5 65 </a>
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"}
69 </a>
70 Sujet : {$m.subj|hdc|default:"[pas de sujet]"}<br />
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}
84 <a href='{$platal->ns}lists?del={$liste.list}'
38d1f2d4 85 onclick="return (is_IE || Ajax.update_html('list_{$liste.list}', '{$platal->ns}lists/ajax/{$liste.list}?unsubscribe=1'));">
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}
91 <a href='{$platal->ns}lists?add={$liste.list}'
38d1f2d4 92 onclick="return (is_IE || Ajax.update_html('list_{$liste.list}', '{$platal->ns}lists/ajax/{$liste.list}?subscribe=1'));">
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: *}