better explanations for list creation
[platal.git] / templates / newsletter / show.tpl
index 71f2160..8cb9332 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2007 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2008 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
@@ -30,7 +30,7 @@
   {else}
   [<a href='nl/show/{$nl->id()}?text=1'>version Texte</a>]
   {/if}
-  {if $smarty.session.perms->hasFlag('admin')}
+  {if hasPerm('admin')}
   [<a href='admin/newsletter/edit/{$nl->id()}'>Editer</a>]
   {/if}
 </p>
@@ -47,7 +47,7 @@
   <tr><th>{$nl->title(true)}</th></tr>
   <tr>
     <td>
-      {include file="newsletter/nl.tpl"}
+      {include file="newsletter/nl.mail.tpl"}
     </td>
   </tr>
 </table>