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"}