clarification du menu des listes
authorx2000chevalier <x2000chevalier>
Sun, 7 Nov 2004 14:22:49 +0000 (14:22 +0000)
committerx2000chevalier <x2000chevalier>
Sun, 7 Nov 2004 14:22:49 +0000 (14:22 +0000)
templates/listes/admin.tpl
templates/listes/check.tpl
templates/listes/header_listes.tpl [new file with mode: 0644]
templates/listes/members.tpl
templates/listes/moderate.tpl
templates/listes/options.tpl
templates/listes/soptions.tpl
templates/listes/trombi.tpl

index d76e73a..5568238 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: admin.tpl,v 1.16 2004-11-02 09:03:43 x2000habouzit Exp $
+        $Id: admin.tpl,v 1.17 2004-11-07 14:22:49 x2000chevalier Exp $
  ***************************************************************************}
 
 {dynamic}
@@ -34,18 +34,7 @@ Tu n'es pas administrateur de la liste, mais du site.
 </p>
 {/if}
 
-<p>
-[<a href='index.php'>listes</a>] »
-[<a href='members.php?liste={$smarty.request.liste}'>{$smarty.request.liste}</a>]
-[<a href='trombi.php?liste={$smarty.request.liste}'>trombino</a>] »
-[<a href='moderate.php?liste={$smarty.get.liste}'>modération</a>]
-[membres]
-[<a href='options.php?liste={$smarty.get.liste}'>options</a>]
-{perms level=admin} »
-[<a href='soptions.php?liste={$smarty.get.liste}'>Soptions</a>]
-[<a href='check.php?liste={$smarty.get.liste}'>check</a>]
-{/perms}
-</p>
+{include file="listes/header_listes.tpl"}
 
 <p>
 Pour entrer un utilisateur, il faut remplir les champs prévus à cet effet par son login,
index c0b74ca..15fa60c 100644 (file)
 
 {else}
 
-<p>
-[<a href='index.php'>listes</a>] »
-[<a href='members.php?liste={$smarty.request.liste}'>{$smarty.request.liste}</a>]
-[<a href='trombi.php?liste={$smarty.request.liste}'>trombino</a>] »
-[<a href='moderate.php?liste={$smarty.get.liste}'>modération</a>]
-[<a href='admin.php?liste={$smarty.get.liste}'>membres</a>]
-[<a href='options.php?liste={$smarty.get.liste}'>options</a>]
-{perms level=admin} »
-[<a href='soptions.php?liste={$smarty.get.liste}'>Soptions</a>]
-[check]
-{/perms}
-</p>
+{include file="listes/header_listes.tpl"}
 
 {if $options|@count}
 <table class='bicol' cellpadding='2' cellspacing='0'>
-  <tr><th colspan='3'>Options incorrectres pour {$details.addr}</th></tr>
+  <tr><th colspan='3'>Options incorrectes pour {$details.addr}</th></tr>
   <tr><th>champs</th><th>devrait être:</th><th>est ...</th></tr>
   {foreach from=$options key=k item=o}
   <tr>
diff --git a/templates/listes/header_listes.tpl b/templates/listes/header_listes.tpl
new file mode 100644 (file)
index 0000000..601b24f
--- /dev/null
@@ -0,0 +1,46 @@
+{***************************************************************************
+ *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  http ://opensource.polytechnique.org/                                   *
+ *                                                                         *
+ *  This program is free software; you can redistribute it and/or modify   *
+ *  it under the terms of the GNU General Public License as published by   *
+ *  the Free Software Foundation; either version 2 of the License, or      *
+ *  (at your option) any later version.                                    *
+ *                                                                         *
+ *  This program is distributed in the hope that it will be useful,        *
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
+ *  GNU General Public License for more details.                           *
+ *                                                                         *
+ *  You should have received a copy of the GNU General Public License      *
+ *  along with this program; if not, write to the Free Software            *
+ *  Foundation, Inc.,                                                      *
+ *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
+ ***************************************************************************
+        $Id: header_listes.tpl,v 1.1 2004-11-07 14:22:49 x2000chevalier Exp $
+ ***************************************************************************}
+
+{dynamic}
+<p>
+[<a href='index.php'>Voir toutes les listes</a>]
+<br />
+<strong>Liste {$smarty.request.liste} : </strong>
+[<a href='members.php?liste={$smarty.request.liste}'>liste des membres</a>]
+[<a href='trombi.php?liste={$smarty.request.liste}'>trombinoscope</a>]
+<br />
+{if $details.own || $smarty.session.perms eq admin}
+<strong>Administration de la liste {$smarty.request.liste} : </strong>
+[<a href='moderate.php?liste={$smarty.get.liste}'>modération des messages en attente</a>]
+[<a href='admin.php?liste={$smarty.get.liste}'>ajout/retrait de membres</a>]
+[<a href='options.php?liste={$smarty.get.liste}'>options</a>]
+{/if}
+{perms level=admin}
+<br />
+<strong>Administrateurs du site : </strong>
+[<a href='soptions.php?liste={$smarty.get.liste}'>options avancées</a>]
+[<a href='check.php?liste={$smarty.get.liste}'>vérifications</a>]
+{/perms}
+</p>
+{/dynamic}
+
+{* vim:set et sw=2 sts=2 sws=2: *}
index b4dbe50..00e8140 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: members.tpl,v 1.10 2004-10-24 14:41:13 x2000habouzit Exp $
+        $Id: members.tpl,v 1.11 2004-11-07 14:22:49 x2000chevalier Exp $
  ***************************************************************************}
 
 {dynamic}
 
 {else}
 
-<p>
-[<a href='index.php'>listes</a>] »
-[{$smarty.request.liste}]
-[<a href='trombi.php?liste={$smarty.request.liste}'>trombino</a>]
-{if $details.own || $smarty.session.perms eq admin}
-[<a href='moderate.php?liste={$smarty.get.liste}'>modération</a>]
-[<a href='admin.php?liste={$smarty.get.liste}'>membres</a>]
-[<a href='options.php?liste={$smarty.get.liste}'>options</a>]
-{/if}
-{perms level=admin} »
-[<a href='soptions.php?liste={$smarty.get.liste}'>Soptions</a>]
-[<a href='check.php?liste={$smarty.get.liste}'>check</a>]
-{/perms}
-</p>
+{include file="listes/header_listes.tpl"}
 
 <h1>
   Liste {$smarty.request.liste}
index b840a40..d739be7 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: moderate.tpl,v 1.17 2004-10-30 14:05:49 x2000habouzit Exp $
+        $Id: moderate.tpl,v 1.18 2004-11-07 14:22:49 x2000chevalier Exp $
  ***************************************************************************}
 
 {dynamic}
 
 {else}
 
-<p>
-[<a href='index.php'>listes</a>] »
-[<a href='members.php?liste={$smarty.request.liste}'>{$smarty.request.liste}</a>]
-[<a href='trombi.php?liste={$smarty.request.liste}'>trombino</a>] »
-[modération]
-[<a href='admin.php?liste={$smarty.get.liste}'>membres</a>]
-[<a href='options.php?liste={$smarty.get.liste}'>options</a>]
-{perms level=admin} »
-[<a href='soptions.php?liste={$smarty.get.liste}'>Soptions</a>]
-[<a href='check.php?liste={$smarty.get.liste}'>check</a>]
-{/perms}
-</p>
+{include file="listes/header_listes.tpl"}
 
 <h1>
   Inscriptions en attente de modération
index 5c8ed3b..650eb32 100644 (file)
@@ -34,18 +34,7 @@ Tu n'es pas administrateur de la liste, mais du site.
 </p>
 {/if}
 
-<p>
-[<a href='index.php'>listes</a>] »
-[<a href='members.php?liste={$smarty.request.liste}'>{$smarty.request.liste}</a>]
-[<a href='trombi.php?liste={$smarty.request.liste}'>trombino</a>] »
-[<a href='moderate.php?liste={$smarty.get.liste}'>modération</a>]
-[<a href='admin.php?liste={$smarty.get.liste}'>membres</a>]
-[options]
-{perms level=admin} »
-[<a href='soptions.php?liste={$smarty.get.liste}'>Soptions</a>]
-[<a href='check.php?liste={$smarty.get.liste}'>check</a>]
-{/perms}
-</p>
+{include file="listes/header_listes.tpl"}
 
 <h1>
   Changer les options de la liste {$details.addr}
index 6cdf3d2..f119f39 100644 (file)
 
 {else}
 
-<p>
-[<a href='index.php'>listes</a>] »
-[<a href='members.php?liste={$smarty.request.liste}'>{$smarty.request.liste}</a>]
-[<a href='trombi.php?liste={$smarty.request.liste}'>trombino</a>] »
-[<a href='moderate.php?liste={$smarty.get.liste}'>modération</a>]
-[<a href='admin.php?liste={$smarty.get.liste}'>membres</a>]
-[<a href='options.php?liste={$smarty.get.liste}'>options</a>]
-{perms level=admin} »
-[Soptions]
-[<a href='check.php?liste={$smarty.get.liste}'>check</a>]
-{/perms}
-</p>
+{include file="listes/header_listes.tpl"}
 
 <h1>
   Changer les options de la liste {$details.addr}
index b23fdfa..6ed2d32 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: trombi.tpl,v 1.10 2004-10-28 20:28:43 x2000habouzit Exp $
+        $Id: trombi.tpl,v 1.11 2004-11-07 14:22:49 x2000chevalier Exp $
  ***************************************************************************}
 
 {dynamic}
 
 {else}
 
-<p>
-[<a href='index.php'>listes</a>]
- »
-[<a href='members.php?liste={$smarty.request.liste}'>{$smarty.request.liste}</a>]
-[trombino]
-{if $details.own || $smarty.session.perms eq admin}
- »
-[<a href='moderate.php?liste={$smarty.get.liste}'>modération</a>]
-[<a href='admin.php?liste={$smarty.get.liste}'>membres</a>]
-[<a href='options.php?liste={$smarty.get.liste}'>options</a>]
-{/if}
-{perms level=admin} »
-[<a href='soptions.php?liste={$smarty.get.liste}'>Soptions</a>]
-[<a href='check.php?liste={$smarty.get.liste}'>check</a>]
-{/perms}
-</p>
+{include file="listes/header_listes.tpl"}
 
 <h1>
   Liste {$smarty.request.liste}