Skip to content

Commit

Permalink
Merge pull request #915 from betagouv/newsletter
Browse files Browse the repository at this point in the history
add form for newsletter COVID-19
  • Loading branch information
n-b authored Mar 18, 2020
2 parents efedc57 + 9f2e932 commit eed8ff4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/landings/_landing.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.card{ class: (landing.emphasis.to_bool ? 'emphasis' : '') }
- path = landing_path({ slug: landing.slug, anchor: 'section-exemples' }.merge(tracking_params))
- path = landing_path({ slug: landing.slug, anchor: 'section-newsletter-covid' }.merge(tracking_params))
= link_to path do
.card__content
%h3.landing-title= simple_format(landing.home_title, {}, wrapper_tag: 'span')
Expand Down
6 changes: 6 additions & 0 deletions app/views/landings/show.haml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
.container.text-center
= render 'landing_details', landing: @landing

%section.section-white#section-newsletter-covid
.container.container-medium
%iframe.mj-w-res-iframe{ :frameborder => "0", :marginheight => "0", :marginwidth => "0", :scrolling => "no", :src => "https://app.mailjet.com/widget/iframe/2ogL/pTA", :width => "100%" }

%section.section.section-grey#section-exemples
.container.container-medium
= render 'landing_topics/landing_topics', landing: @landing, landing_topics: @landing_topics, tracking_params: @tracking_params
Expand All @@ -22,3 +26,5 @@
.container.container-medium
- cache('ministats', expires_in: 1.hour) do
= render 'stats/ministats'

%script{ :src => "https://app.mailjet.com/statics/js/iframeResizer.min.js", :type => "text/javascript" }

0 comments on commit eed8ff4

Please sign in to comment.