Newsletter: add mailjet widget
This commit is contained in:
parent
a16b13464a
commit
a312628383
3 changed files with 5 additions and 0 deletions
2
app/views/layouts/_mailjet_newsletter.html.haml
Normal file
2
app/views/layouts/_mailjet_newsletter.html.haml
Normal 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' }
|
|
@ -25,6 +25,8 @@
|
|||
|
||||
%li.footer-column
|
||||
%ul.footer-links
|
||||
%li.footer-link
|
||||
%a{ href: '#', 'data-token' => '11c89e7ddb46fbcdcb7f8fe5fdfca818', onclick: 'mjOpenPopin(event, this)' } Newsletter
|
||||
%li.footer-link
|
||||
= link_to "Contact",
|
||||
"mailto:#{t('dynamics.contact_email')}",
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
= render partial: "layouts/new_footer"
|
||||
= render partial: "layouts/google_analytics"
|
||||
= render partial: "layouts/mailjet_newsletter"
|
||||
|
||||
= javascript_include_tag "application", "data-turbolinks-track" => true
|
||||
- if Rails.env == "test"
|
||||
|
|
Loading…
Reference in a new issue