From c0814354c9d613da9f870467bfc7f85fe90e9172 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Sat, 29 Jun 2013 19:47:15 +0200 Subject: [PATCH] =?UTF-8?q?lien=20adh=C3=A9sion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/newsletters_controller.rb | 2 +- app/views/layouts/mail.html.haml | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/controllers/newsletters_controller.rb b/app/controllers/newsletters_controller.rb index 6c35e78..40986e9 100755 --- a/app/controllers/newsletters_controller.rb +++ b/app/controllers/newsletters_controller.rb @@ -53,7 +53,7 @@ class NewslettersController < ApplicationController def show @newsletter = Newsletter.find(params[:id]) - + @options = {} render :layout => "mail" end diff --git a/app/views/layouts/mail.html.haml b/app/views/layouts/mail.html.haml index 532c847..9688dce 100755 --- a/app/views/layouts/mail.html.haml +++ b/app/views/layouts/mail.html.haml @@ -32,9 +32,10 @@ -if @options[:sheet] and @options[:sheet].last_year < Date.today.year %tr{:style => "background:#e16b13;"} %td{:colspan => "3", :style => "padding:10px;text-align:center;color:white;"} - Attention : votre adhésion n'a pas encore été renouvellée pour - = Date.today.year - ="." + %a{:href => "http://www.lepicvert.asso.fr/131/lassociation/adherer", :style => "color:white;text-decoration:none;"} + Attention : votre adhésion n'a pas encore été renouvellée pour + = Date.today.year + ="." %tr{:style => "background:#f4f3ef"}