blog init
This commit is contained in:
45
source/video/template.html.haml
Normal file
45
source/video/template.html.haml
Normal file
@ -0,0 +1,45 @@
|
||||
---
|
||||
title: Video
|
||||
---
|
||||
|
||||
.spacer-50
|
||||
.row
|
||||
.col-sm-12
|
||||
%h3= video.title
|
||||
|
||||
.row
|
||||
.col-sm-12
|
||||
.player
|
||||
- if video.vimeo?
|
||||
= video.vimeo
|
||||
- else
|
||||
:ruby
|
||||
options = {
|
||||
src: "/video/#{video.file}",
|
||||
style:"width:#{video.width}px; height:#{video.height}px",
|
||||
poster: "/video/#{video.poster}",
|
||||
}
|
||||
%video{video.options.merge(options)}
|
||||
|
||||
.row
|
||||
.col-sm-12
|
||||
- if video.note
|
||||
%p= video.note
|
||||
|
||||
- if video.role?
|
||||
%p My Role: #{video.role}
|
||||
|
||||
- if video.credit
|
||||
%p
|
||||
Credits:
|
||||
%br
|
||||
= video.credit
|
||||
|
||||
.row
|
||||
.col-sm-12
|
||||
.side-links
|
||||
%ul
|
||||
%li More Videos:
|
||||
- data.video.each do |vdo, video|
|
||||
%li= link_to video.title, "#{vdo}.html"
|
||||
|
Reference in New Issue
Block a user