Newsletter: add mailjet widget

This commit is contained in:
Simon Lehericey 2017-05-10 15:44:47 +02:00
parent a16b13464a
commit a312628383
3 changed files with 5 additions and 0 deletions

View file

@ -0,0 +1,2 @@
%data.mj-w-data{ "data-apikey" => "1v5T", "data-base" => "http://app.mailjet.com", "data-height" => "328", "data-lang" => "fr_FR", "data-statics" => "statics", "data-token" => "11c89e7ddb46fbcdcb7f8fe5fdfca818", "data-w-id" => "39b", "data-width" => "640" }
%script{ src: 'http://app.mailjet.com/statics/js/widget.modal.js' }

View file

@ -25,6 +25,8 @@
%li.footer-column %li.footer-column
%ul.footer-links %ul.footer-links
%li.footer-link
%a{ href: '#', 'data-token' => '11c89e7ddb46fbcdcb7f8fe5fdfca818', onclick: 'mjOpenPopin(event, this)' } Newsletter
%li.footer-link %li.footer-link
= link_to "Contact", = link_to "Contact",
"mailto:#{t('dynamics.contact_email')}", "mailto:#{t('dynamics.contact_email')}",

View file

@ -33,6 +33,7 @@
= render partial: "layouts/new_footer" = render partial: "layouts/new_footer"
= render partial: "layouts/google_analytics" = render partial: "layouts/google_analytics"
= render partial: "layouts/mailjet_newsletter"
= javascript_include_tag "application", "data-turbolinks-track" => true = javascript_include_tag "application", "data-turbolinks-track" => true
- if Rails.env == "test" - if Rails.env == "test"