Fix a broken link
[platal.git] / templates / listes / listes.inc.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2006 Polytechnique.org                             *}
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 <table class='bicol' cellpadding='0' cellspacing='0'>
24   <tr>
25     <th></th>
26     <th>Liste</th>
27     <th>Description</th>
28     <th>Diff.</th>
29     <th>Inscr.</th>
30     <th>Nb</th>
31     <th></th>
32   </tr>
33   {foreach from=$listes item=liste}
34   {if $liste.priv eq $priv}
35   <tr class='{cycle values="impair,pair"}'>
36     <td style="width: 16px">
37       {if $liste.own}
38       {icon name=wrench title="Modérateur"}
39       {/if}
40     </td>
41     <td>
42       <a href='{$platal->ns}lists/members/{$liste.list}'>{$liste.list}</a> 
43     </td>
44     <td>{$liste.desc}</td>
45     <td class='center'>
46       {if $liste.diff eq 2}modérée{elseif $liste.diff}restreinte{else}libre{/if}
47     </td>
48     <td class='center'>
49       {if $liste.ins}modérée{else}libre{/if}
50     </td>
51     <td class='right'>{$liste.nbsub}</td>
52     <td class='right'>
53       {if $liste.sub eq 2}
54       <a href='{$platal->ns}lists?del={$liste.list}'>
55         {icon name=cross title="me désinscrire"}
56       </a>
57       {elseif $liste.sub eq 1}
58       {icon name=flag_orange title='inscription en attente de modération'}
59       {else}
60       <a href='{$platal->ns}lists?add={$liste.list}'>
61         {icon name=add title="m'inscrire"}</a>
62       {/if}
63     </td>
64   </tr>
65   {/if}
66   {/foreach}
67 </table>
68
69 {* vim:set et sw=2 sts=2 sws=2: *}