Fixes accessing to groups having shortnames that look like ids. Closes #1084
[platal.git] / templates / lists / header_listes.tpl
... / ...
CommitLineData
1{**************************************************************************}
2{* *}
3{* Copyright (C) 2003-2010 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>
24 <tr>
25 <td colspan='2'>
26 [<a href='{$platal->ns}lists'>Voir toutes les listes</a>]
27 </td>
28 </tr>
29 <tr>
30 <td><strong>Liste {$platal->argv[1]}&nbsp;:</strong></td>
31 <td>
32 {if $on neq members}
33 [<a href='{$platal->ns}lists/members/{$platal->argv[1]}'>liste des membres</a>]
34 {else}
35 [liste des membres]
36 {/if}
37 {if $on neq trombi}
38 [<a href='{$platal->ns}lists/annu/{$platal->argv[1]}'>annuaire/trombi</a>]
39 {else}
40 [annuaire/trombi]
41 {/if}
42 {if $on neq archives}
43 [<a href='{$platal->ns}lists/archives/{$platal->argv[1]}'>archives</a>]
44 {else}
45 [archives]
46 {/if}
47 </td>
48 </tr>
49 {if $details.own || hasPerms('admin,groupadmin')}
50 <tr>
51 <td><strong>Administrer la liste&nbsp;:</strong></td>
52 <td>
53 {if $on neq moderate}
54 [<a href='{$platal->ns}lists/moderate/{$platal->argv[1]}'>modération</a>]
55 {else}
56 [modération]
57 {/if}
58 {if $on neq admin}
59 [<a href='{$platal->ns}lists/admin/{$platal->argv[1]}'>ajout/retrait de membres</a>]
60 {else}
61 [ajout/retrait de membres]
62 {/if}
63 {if $on neq options}
64 [<a href='{$platal->ns}lists/options/{$platal->argv[1]}'>options</a>]
65 {else}
66 [options]
67 {/if}
68 {if $on neq delete}
69 [<a href='{$platal->ns}lists/delete/{$platal->argv[1]}'>détruire</a>]
70 {else}
71 [détruire liste]
72 {/if}
73 </td>
74 </tr>
75 {/if}
76 {if hasPerms('admin,groupadmin')}
77
78 <tr>
79 <td><strong>Administrer (avancé)&nbsp;:</strong></td>
80 <td>
81 {if $on neq soptions}
82 [<a href='{$platal->ns}lists/soptions/{$platal->argv[1]}'>options avancées</a>]
83 {else}
84 [options avancées]
85 {/if}
86 {if $on neq check}
87 [<a href='{$platal->ns}lists/check/{$platal->argv[1]}'>vérifications</a>]
88 {else}
89 [vérifications]
90 {/if}
91 </td>
92 </tr>
93 {/if}
94 {if $it_is_xnet && ($details.own || $is_admin)}
95 <tr>
96 <td><strong>Synchroniser&nbsp;:</strong></td>
97 {if $on neq sync}
98 <td>[<a href="{$platal->ns}lists/sync/{$platal->argv[1]}">synchroniser avec l'annuaire</a>]</td>
99 {else}
100 <td>[synchroniser avec l'annuaire]</td>
101 {/if}
102 </tr>
103 {/if}
104</table>
105
106
107{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}