diff options
Diffstat (limited to 'views/video.haml')
-rw-r--r-- | views/video.haml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/views/video.haml b/views/video.haml new file mode 100644 index 0000000..d772c94 --- /dev/null +++ b/views/video.haml @@ -0,0 +1,12 @@ +- @youtube.each do |id| + %div.container.justify-content-md-center + %div.card + %div.card-body + %div.embed-responsive.embed-responsive-4by3{:id=>id} + %iframe.embed-responsive-item{:src=>"https://www.youtube.com/embed/#{id}", :allowfullscreen=>"allowfullscreen"} +- @vimeo.each do |id| + %div.container.justify-content-md-center + %div.card + %div.card-body + %div.embed-responsive.embed-responsive-4by3{:id=>id} + %iframe.embed-responsive-item{:src=>"https://player.vimeo.com/video/#{id}", :allowfullscreen=>"allowfullscreen"} |