From dc6ff3b4eacce3451adee0edbd3f2613294a4ec5 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Tue, 7 Apr 2020 12:05:36 +0200 Subject: [PATCH] mailers: in avis requests, replace the small CTA link by a large button Fix #3402 --- app/mailers/avis_mailer.rb | 2 ++ app/views/avis_mailer/avis_invitation.html.haml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/mailers/avis_mailer.rb b/app/mailers/avis_mailer.rb index ea7ebe441..0f1b887a2 100644 --- a/app/mailers/avis_mailer.rb +++ b/app/mailers/avis_mailer.rb @@ -1,5 +1,7 @@ # Preview all emails at http://localhost:3000/rails/mailers/avis_mailer class AvisMailer < ApplicationMailer + helper MailerHelper + layout 'mailers/layout' def avis_invitation(avis) diff --git a/app/views/avis_mailer/avis_invitation.html.haml b/app/views/avis_mailer/avis_invitation.html.haml index bd08f19ac..c0f3f4272 100644 --- a/app/views/avis_mailer/avis_invitation.html.haml +++ b/app/views/avis_mailer/avis_invitation.html.haml @@ -25,9 +25,9 @@ - if @avis.instructeur.present? %p - = link_to "Cliquez ici pour donner votre avis", avis_link + = round_button("Donner votre avis", avis_link, :primary) - else %p - = link_to "Inscrivez-vous pour donner votre avis", avis_link + = round_button("Inscrivez-vous pour donner votre avis", avis_link, :primary) = render partial: "layouts/mailers/signature"