Replace %HASH% in the newsletter with $hash/$login.
[platal.git] / templates / newsletter / nl.mail.tpl
index a9771cf..cd6ecd3 100644 (file)
@@ -51,7 +51,7 @@
 --------------------------------------------------------------------
 
 {foreach from=$arts item=art}
-{$art->toText()}
+{$art->toText($hash, $alias)}
 
 {/foreach}
 {/foreach}
 Cette lettre est envoyée à tous les Polytechniciens sur Internet par
 l'intermédiaire de Polytechnique.org.
 
+{if $is_mail}
 archives         : <https://www.polytechnique.org/nl>
 écrire           : <https://www.polytechnique.org/nl/submit>
 ne plus recevoir : <https://www.polytechnique.org/nl/out>
-
+{else}
+archives         : &lt;https://www.polytechnique.org/nl&gt;
+écrire           : &lt;https://www.polytechnique.org/nl/submit&gt;
+ne plus recevoir : &lt;https://www.polytechnique.org/nl/out&gt;
+{/if}
 {if !$is_mail}
 </pre>
 {/if}
@@ -104,7 +109,7 @@ ne plus recevoir : <https://www.polytechnique.org/nl/out>
         {$nl->_cats[$cid]}
       </h1>
       {foreach from=$arts item=art}
-        {$art->toHtml()|smarty:nodefaults}
+        {$art->toHtml($hash, $alias)|smarty:nodefaults}
         <div class="top_lnk"><a href="{$prefix}#top_lnk">Revenir au sommaire</a></div>
       {/foreach}
       {/foreach}