jmy remark
authorx2000habouzit <x2000habouzit>
Sun, 10 Oct 2004 22:05:25 +0000 (22:05 +0000)
committerx2000habouzit <x2000habouzit>
Sun, 10 Oct 2004 22:05:25 +0000 (22:05 +0000)
templates/listes/moderate.tpl
templates/listes/moderate_mail.tpl

index 68929c5..73c08b6 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: moderate.tpl,v 1.10 2004-10-09 12:49:38 x2000habouzit Exp $
+        $Id: moderate.tpl,v 1.11 2004-10-10 22:05:25 x2000habouzit Exp $
  ***************************************************************************}
 
 {dynamic}
@@ -87,7 +87,7 @@
   {foreach from=$mails item=m}
   <tr class='{cycle values="pair,impair"}'>
     <td>{$m.sender}</td>
-    <td>{$m.subj}</td>
+    <td>{$m.subj|qpd}</td>
     <td class='right'>{$m.size}o</td>
     <td class='right'>{$m.stamp|date_format:"%H:%M:%S<br />%d %b %Y"}</td>
     <td class='action'>
index 6c6c655..cb66fd9 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: moderate_mail.tpl,v 1.4 2004-09-24 16:43:53 x2000habouzit Exp $
+        $Id: moderate_mail.tpl,v 1.5 2004-10-10 22:05:25 x2000habouzit Exp $
  ***************************************************************************}
 
 {dynamic}
@@ -60,7 +60,7 @@
   {foreach from=$mail.parts item=part key=i}
   <tr><th>Partie n°{$i}</th></tr>
   <tr class='{cycle values="impair,pair"}'>
-    <td><pre>{$part|qpd|regex_replace:"!\\n-- *\\n(.*?)$!sm":"</pre><hr style='width:98%;margin:1%'/><pre>\\1"}</pre></td>
+    <td><tt>{$part|qpd|nl2br}</tt></td>
   </tr>
   {/foreach}
 </table>