Adds a link to ->baseurl on the title of the NL, and fixes a display issue on Mail...
authorStéphane Jacob <sj@m4x.org>
Fri, 2 Oct 2009 08:24:54 +0000 (10:24 +0200)
committerStéphane Jacob <sj@m4x.org>
Fri, 2 Oct 2009 08:24:54 +0000 (10:24 +0200)
htdocs/css/nl.css
templates/newsletter/nl.mail.tpl

index 481fcbf..0b338aa 100644 (file)
@@ -59,6 +59,20 @@ div.nl div.title {
     background-position : 0.5ex 0ex;
 }
 
+div.nl div.title a {
+    color : #fff;
+    background-color : transparent;
+    text-decoration : none;
+    background-image: none;
+}
+
+div.nl div.title a:hover {
+    color : #fff;
+    background-color : transparent;
+    text-decoration : none;
+    background-image: none;
+}
+
 div.nl div.intro {
     margin : 4ex 3ex;
 }
index a7af201..f1bf66c 100644 (file)
@@ -76,8 +76,8 @@ ne plus recevoir : &lt;https://www.polytechnique.org/nl/out&gt;
 {if $is_mail}
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"> 
-  <head>  
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
     <title>Lettre mensuelle de Polytechnique.org</title>
     <style type="text/css">
       {literal}
@@ -92,7 +92,7 @@ ne plus recevoir : &lt;https://www.polytechnique.org/nl/out&gt;
     <div class='nl_background'>
 {/if}
     <div class='nl'>
-      <div class="title">{$nl->title()}</div>
+      <div class="title"><a href="{$globals->baseurl}">{$nl->title()}</a></div>
       <div class="intro">{$nl->head($prenom, $nom, $sexe, 'html')|smarty:nodefaults}</div>
       <a id="top_lnk"></a>
       {foreach from=$nl->_arts key=cid item=arts name=cats}