From 2651bf559ff75722d9f77d9f8fe2258270ea46e4 Mon Sep 17 00:00:00 2001
From: x2000chevalier
Date: Sun, 7 Nov 2004 14:22:49 +0000
Subject: [PATCH] clarification du menu des listes
---
templates/listes/admin.tpl | 15 ++-----------
templates/listes/check.tpl | 15 ++-----------
templates/listes/header_listes.tpl | 46 ++++++++++++++++++++++++++++++++++++++
templates/listes/members.tpl | 18 ++-------------
templates/listes/moderate.tpl | 15 ++-----------
templates/listes/options.tpl | 13 +----------
templates/listes/soptions.tpl | 13 +----------
templates/listes/trombi.tpl | 19 ++--------------
8 files changed, 58 insertions(+), 96 deletions(-)
create mode 100644 templates/listes/header_listes.tpl
diff --git a/templates/listes/admin.tpl b/templates/listes/admin.tpl
index d76e73a..5568238 100644
--- a/templates/listes/admin.tpl
+++ b/templates/listes/admin.tpl
@@ -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.
{/if}
-
-[listes] »
-[{$smarty.request.liste}]
-[trombino] »
-[modération]
-[membres]
-[options]
-{perms level=admin} »
-[Soptions]
-[check]
-{/perms}
-
+{include file="listes/header_listes.tpl"}
Pour entrer un utilisateur, il faut remplir les champs prévus à cet effet par son login,
diff --git a/templates/listes/check.tpl b/templates/listes/check.tpl
index c0b74ca..15fa60c 100644
--- a/templates/listes/check.tpl
+++ b/templates/listes/check.tpl
@@ -28,22 +28,11 @@
{else}
-
-[listes] »
-[{$smarty.request.liste}]
-[trombino] »
-[modération]
-[membres]
-[options]
-{perms level=admin} »
-[Soptions]
-[check]
-{/perms}
-
+{include file="listes/header_listes.tpl"}
{if $options|@count}
- Options incorrectres pour {$details.addr} |
+ Options incorrectes pour {$details.addr} |
champs | devrait être: | est ... |
{foreach from=$options key=k item=o}
diff --git a/templates/listes/header_listes.tpl b/templates/listes/header_listes.tpl
new file mode 100644
index 0000000..601b24f
--- /dev/null
+++ b/templates/listes/header_listes.tpl
@@ -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}
+
+[Voir toutes les listes]
+
+Liste {$smarty.request.liste} :
+[liste des membres]
+[trombinoscope]
+
+{if $details.own || $smarty.session.perms eq admin}
+Administration de la liste {$smarty.request.liste} :
+[modération des messages en attente]
+[ajout/retrait de membres]
+[options]
+{/if}
+{perms level=admin}
+
+Administrateurs du site :
+[options avancées]
+[vérifications]
+{/perms}
+
+{/dynamic}
+
+{* vim:set et sw=2 sts=2 sws=2: *}
diff --git a/templates/listes/members.tpl b/templates/listes/members.tpl
index b4dbe50..00e8140 100644
--- a/templates/listes/members.tpl
+++ b/templates/listes/members.tpl
@@ -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}
@@ -28,21 +28,7 @@
{else}
-
-[listes] »
-[{$smarty.request.liste}]
-[trombino]
-{if $details.own || $smarty.session.perms eq admin}
-»
-[modération]
-[membres]
-[options]
-{/if}
-{perms level=admin} »
-[Soptions]
-[check]
-{/perms}
-
+{include file="listes/header_listes.tpl"}
Liste {$smarty.request.liste}
diff --git a/templates/listes/moderate.tpl b/templates/listes/moderate.tpl
index b840a40..d739be7 100644
--- a/templates/listes/moderate.tpl
+++ b/templates/listes/moderate.tpl
@@ -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}
@@ -28,18 +28,7 @@
{else}
-
-[listes] »
-[{$smarty.request.liste}]
-[trombino] »
-[modération]
-[membres]
-[options]
-{perms level=admin} »
-[Soptions]
-[check]
-{/perms}
-
+{include file="listes/header_listes.tpl"}
Inscriptions en attente de modération
diff --git a/templates/listes/options.tpl b/templates/listes/options.tpl
index 5c8ed3b..650eb32 100644
--- a/templates/listes/options.tpl
+++ b/templates/listes/options.tpl
@@ -34,18 +34,7 @@ Tu n'es pas administrateur de la liste, mais du site.
{/if}
-
-[listes] »
-[{$smarty.request.liste}]
-[trombino] »
-[modération]
-[membres]
-[options]
-{perms level=admin} »
-[Soptions]
-[check]
-{/perms}
-
+{include file="listes/header_listes.tpl"}
Changer les options de la liste {$details.addr}
diff --git a/templates/listes/soptions.tpl b/templates/listes/soptions.tpl
index 6cdf3d2..f119f39 100644
--- a/templates/listes/soptions.tpl
+++ b/templates/listes/soptions.tpl
@@ -28,18 +28,7 @@
{else}
-
-[listes] »
-[{$smarty.request.liste}]
-[trombino] »
-[modération]
-[membres]
-[options]
-{perms level=admin} »
-[Soptions]
-[check]
-{/perms}
-
+{include file="listes/header_listes.tpl"}
Changer les options de la liste {$details.addr}
diff --git a/templates/listes/trombi.tpl b/templates/listes/trombi.tpl
index b23fdfa..6ed2d32 100644
--- a/templates/listes/trombi.tpl
+++ b/templates/listes/trombi.tpl
@@ -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}
@@ -28,22 +28,7 @@
{else}
-
-[listes]
- »
-[{$smarty.request.liste}]
-[trombino]
-{if $details.own || $smarty.session.perms eq admin}
- »
-[modération]
-[membres]
-[options]
-{/if}
-{perms level=admin} »
-[Soptions]
-[check]
-{/perms}
-
+{include file="listes/header_listes.tpl"}
Liste {$smarty.request.liste}
--
2.1.4