Files
markamoser.com/source/video/template.html.haml
Mark Moser a938f7e29b blog init
2014-09-15 22:02:33 -05:00

46 lines
775 B
Plaintext

---
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"