WebM support
This commit is contained in:
@@ -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>
|
||||
|
||||
3
app/views/posts/partials/show/_video.html.erb
Normal file
3
app/views/posts/partials/show/_video.html.erb
Normal 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>
|
||||
Reference in New Issue
Block a user