mailers: in avis requests, replace the small CTA link by a large button

Fix #3402
This commit is contained in:
Pierre de La Morinerie 2020-04-07 12:05:36 +02:00
parent 29a136eb10
commit dc6ff3b4ea
2 changed files with 4 additions and 2 deletions

View file

@ -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)

View file

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