WebM support

This commit is contained in:
Toks
2014-06-30 13:21:07 -04:00
parent 1a2517634a
commit a84850c094
8 changed files with 87 additions and 18 deletions

View File

@@ -7,7 +7,7 @@
<% end %>
<li>
Size: <%= link_to_if post.visible?, number_to_human_size(post.file_size), post.file_url %>
<% if post.is_image? %>
<% if post.has_dimensions? %>
(<%= post.image_width %>x<%= post.image_height %>)
<% end %>
</li>

View File

@@ -0,0 +1,3 @@
<%= content_tag(:video, nil, :width => post.image_width, :height => post.image_height, :autoplay => true, :loop => true, :src => post.file_url) %>
<p><%= link_to "Save this video (right click and save)", post.file_url %></p>