parent
3f863011cc
commit
0bbace4667
1 changed files with 3 additions and 3 deletions
|
|
@ -31,12 +31,12 @@
|
|||
.row-fluid
|
||||
.span12.flexvideo
|
||||
-if @event.video_id
|
||||
-if @event.video_type == Event::YOUTUBE
|
||||
%iframe{:width=>"560", :height=>"315", :frameborder=>"0", :allowfullscreen=>"true", :src=> request.ssl? ? "https://" : "http://" + "www.youtube.com/embed/#{@event.video_id}?rel=0"}
|
||||
-if @event.video_type == Event::SLIDE_SHARE
|
||||
%iframe{:width=>"560", :height=>"315", :frameborder=>"0", :allowfullscreen=>"true", :src=> request.ssl? ? "https://" : "http://" + "www.slideshare.net/slideshow/embed_code/#{@event.video_id}"}
|
||||
-if @event.video_type == Event::FLICKR
|
||||
-elsif @event.video_type == Event::FLICKR
|
||||
%iframe{:width=>"560", :height=>"315", :frameborder=>"0", :allowfullscreen=>"true", :src=> request.ssl? ? "https://" : "http://" + "flic.kr/p/#{@event.video_id}/player/268a054da2"}
|
||||
-else
|
||||
%iframe{:width=>"560", :height=>"315", :frameborder=>"0", :allowfullscreen=>"true", :src=> request.ssl? ? "https://" : "http://" + "www.youtube.com/embed/#{@event.video_id}?rel=0"}
|
||||
-else
|
||||
%iframe{:width=>"560", :height=>"315", :frameborder=>"0", :allowfullscreen=>"true", :src=>request.ssl? ? "https://" : "http://" + "www.youtube.com/embed/Eiv4e5ZxTmg?rel=0"}
|
||||
.row-fluid
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue