From: Raphaël Barrois Date: Sun, 15 Jul 2012 14:26:52 +0000 (+0200) Subject: Update FXLetter CSS/template. X-Git-Tag: xorg/1.1.6~25 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=48f20ccf72a23e3c91024a831eb80157ab4a9492;p=platal.git Update FXLetter CSS/template. Signed-off-by: Raphaël Barrois --- diff --git a/htdocs/css/nl.FX.css b/htdocs/css/nl.FX.css index dcbab87..0ff0835 100644 --- a/htdocs/css/nl.FX.css +++ b/htdocs/css/nl.FX.css @@ -66,6 +66,39 @@ div.fx_mail div.signature { text-align : right; } +/* Category */ +div.fx_mail h1.category { + margin: 3ex 0 2ex; + padding : 1.5ex 2ex 0.5ex 1ex; + font-size : 120%; + font-weight : bold; + text-align : right; +} + +/* Article title */ +div.fx_mail h2.xorg_nl { + margin : 2ex 0 0; + padding : 0.4ex 2ex; + font-size : 100%; + font-weight : bold; + font-style : italic; + border-width : thin 0; + border-style : solid; +} + +/* Article text */ +div.fx_mail div.art { + margin: 2ex 3ex; +} + +/* Article details */ +div.fx_mail div.app { + margin : 2ex 6ex 0 3ex; + font-size : 95%; + text-align : left; + color: #333; +} + /* Give */ div.fx_mail div.give { font-weight: bold; diff --git a/templates/newsletter/nl.FX.mail.tpl b/templates/newsletter/nl.FX.mail.tpl index 8332667..4f41fbf 100644 --- a/templates/newsletter/nl.FX.mail.tpl +++ b/templates/newsletter/nl.FX.mail.tpl @@ -36,6 +36,17 @@ {$issue->head($user, 'text')} +{foreach from=$issue->arts key=cid item=arts} +-------------------------------------------------------------------- +*{$issue->category($cid)}* +-------------------------------------------------------------------- + +{foreach from=$arts item=art} +{$art->toText($hash, $user->login())} + +{/foreach} +{/foreach} + {$issue->signature('text')} -------------------------------------------------------------------- @@ -79,10 +90,18 @@ ne plus recevoir : <https://www.polytechnique.org/fxletter/out/{if $hash}{$ha
{$issue->title()}
{$issue->head($user, 'html')|smarty:nodefaults}
+ {foreach from=$issue->arts key=cid item=arts name=cats} +

+ {$issue->category($cid)} +

+ {foreach from=$arts item=art} + {$art->toHtml($hash, $user->login())|smarty:nodefaults} + {/foreach} + {/foreach}
{$issue->signature('html')|smarty:nodefaults}
- Cette lettre est envoyée par la FX grâce aux outils de Polytechnique.org. + Cette lettre est envoyée par la Fondation grâce aux outils de Polytechnique.org.
[archives |