Adds social media to splash
This commit is contained in:
parent
3b6fec9cfb
commit
94b0dae1cc
12 changed files with 48 additions and 2 deletions
35
app/views/conference/_social_media.html.haml
Normal file
35
app/views/conference/_social_media.html.haml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
= content_for :splash_nav do
|
||||
%li
|
||||
%a{ href: '#social-media' } Social Media
|
||||
|
||||
%div.container#social-media.text-center
|
||||
%div.row
|
||||
- if !@conference.facebook_url.blank?
|
||||
%div.col-md-3
|
||||
= link_to image_tag('fb-logo-blue.png', class: 'img-responsive'),
|
||||
"#{ @conference.facebook_url }"
|
||||
- if !@conference.twitter_url.blank?
|
||||
%div.col-md-3
|
||||
= link_to image_tag('twitter-logo-blue.png', class: 'img-responsive'), "#{ @conference.twitter_url }"
|
||||
- if !@conference.media_type.blank? && !@conference.media_id.blank?
|
||||
%div.col-md-3
|
||||
-if @conference.media_type == 'YouTube'
|
||||
= link_to image_tag('youtube-color-logo.png', class: 'img-responsive'),
|
||||
"http://youtu.be/#{ @conference.media_id}"
|
||||
-if @conference.media_type == 'SlideShare'
|
||||
= link_to image_tag('slideshare.png', class: 'img-responsive'), "#{ @conference.media_id}"
|
||||
-if @conference.media_type == 'Instagram'
|
||||
= link_to image_tag('instagram.png', class: 'img-responsive'),
|
||||
"http://instagram.com/p/#{ @conference.media_id}"
|
||||
-if @conference.media_type == 'Vimeo'
|
||||
= link_to image_tag('vimeo-logo-dark.png', class: 'img-responsive'),
|
||||
"http://vimeo.com/#{ @conference.media_id}"
|
||||
-if @conference.media_type == 'Speakerdeck'
|
||||
= link_to image_tag('speakerdeck.png', class: 'img-responsive'),"#{ @conference.media_id}"
|
||||
-if @conference.media_type == 'Flickr'
|
||||
= link_to image_tag('flickr.png', class: 'img-responsive'),
|
||||
"https://flic.kr/p/#{ @conference.media_id}"
|
||||
- if !@conference.google_url.blank?
|
||||
%div.col-md-3
|
||||
= link_to image_tag('google-logo.png', class: 'img-responsive'),
|
||||
"#{ @conference.google_url }"
|
||||
|
|
@ -9,4 +9,5 @@
|
|||
= render 'call_for_papers'
|
||||
%div#sponsors
|
||||
= render 'sponsor'
|
||||
|
||||
%div#social-media
|
||||
= render 'social_media'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue