Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Commit

Permalink
Merge pull request #39 from leouofa/button_fix
Browse files Browse the repository at this point in the history
made video optional
  • Loading branch information
Leonid Medovyy authored Sep 19, 2018
2 parents df05b8a + 6ed32f5 commit 66945d7
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 133 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CONTENTFUL_ACCESS_TOKEN = 'db87ce744dacf1bbb953385ad683611d73c8c0704cbeb84fc38b3c88972dc0b4'
CONTENTFUL_SPACE_ID = 'czw9rkgdy0zt'
CONTENTFUL_ENTRY_ID = 'MTYYHT2UQ8qEYYq8UGmUO'
CONTENTFUL_ENTRY_ID = '4Qx9so7SVO6i2EsMumWY0s'
180 changes: 52 additions & 128 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions app/views/pages/home.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
= h2 'inverted'
= @homepage.master_subheadings.first
.ctas
.wistia_embed class=("popover=true popoverContent=html popoverOverlayOpacity=0.98 popoverOverlayColor=000000 wistia_async_#{@homepage.video_id}") style="display:inline;position:relative"
.button.ui.large.inverted class[email protected]_cta_color.downcase
= icon 'play'
= @homepage.video_cta
- if @homepage.respond_to?(:video_id)
.wistia_embed class=("popover=true popoverContent=html popoverOverlayOpacity=0.98 popoverOverlayColor=000000 wistia_async_#{@homepage.video_id}") style="display:inline;position:relative"
.button.ui.large.inverted class[email protected]_cta_color.downcase
= icon 'play'
= @homepage.video_cta
- if request.env['HTTP_USER_AGENT'].downcase.match(/android/)
a.button.ui.large.typeform-share.link class[email protected]_cta_color.downcase data-mode="popup" href[email protected]_url
= @homepage.typeform_cta
Expand Down

0 comments on commit 66945d7

Please sign in to comment.