From: Raphaël Barrois Date: Sat, 29 Jan 2011 23:33:24 +0000 (+0100) Subject: Update admin pages in order to list all NLs X-Git-Tag: xorg/1.0.2~3 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=ae23da1db4f36ee4a7eacc32931348a53e021517;p=platal.git Update admin pages in order to list all NLs Signed-off-by: Raphaël Barrois --- diff --git a/templates/newsletter/admin_all.tpl b/templates/newsletter/admin_all.tpl new file mode 100644 index 0000000..20b0714 --- /dev/null +++ b/templates/newsletter/admin_all.tpl @@ -0,0 +1,40 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2011 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 *} +{* *} +{**************************************************************************} + + + + + + + + + + {foreach from=$nls item=nl} + + + + + + + + {/foreach} +
IdGroupeTitreCSS spécifiqueCritères actifs
{$nl->id}{$nl->group}{$nl->name}{if $nl->hasCustomCss()}Oui{else}Non{/if}{$nl->criteria->flags()}
diff --git a/templates/newsletter/index.tpl b/templates/newsletter/index.tpl index 4fd362c..1978e44 100644 --- a/templates/newsletter/index.tpl +++ b/templates/newsletter/index.tpl @@ -61,9 +61,9 @@ Tu n'es actuellement pas inscrit à la {$nl->name}. {foreach item=nli from=$nl_list} - {$nli.date|date_format} + {$nli->date|date_format} - {$nli.title|default:"[Sans titre]"} + {$nli->title()|default:"[Sans titre]"} {/foreach}