posts: remove dead has_ugoira_webm? code.
This commit is contained in:
@@ -220,10 +220,6 @@ class Post < ApplicationRecord
|
||||
def has_dimensions?
|
||||
image_width.present? && image_height.present?
|
||||
end
|
||||
|
||||
def has_ugoira_webm?
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
module ImageMethods
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% if CurrentUser.user.default_image_size == "large" && params[:original].blank? && post.has_ugoira_webm? %>
|
||||
<% if CurrentUser.user.default_image_size == "large" && params[:original].blank? %>
|
||||
<%= render "posts/partials/show/ugoira_webm", :post => post %>
|
||||
<% else %>
|
||||
<%= render "posts/partials/show/ugoira_original", :post => post %>
|
||||
|
||||
@@ -15,9 +15,6 @@
|
||||
<%= button_tag "Pause", :id => "ugoira-pause" %>
|
||||
<div id="seek-slider" class="ml-4" style="width: <%= [@post.image_width, 350].max - 81 %>px;"></div>
|
||||
</div>
|
||||
<% if post.has_ugoira_webm? %>
|
||||
<%= link_to "Save as video (right click and save)", post.tagged_large_file_url %>
|
||||
<% else %>
|
||||
WebM conversion pending
|
||||
<% end %>
|
||||
|
||||
<%= link_to "Save as video (right click and save)", post.tagged_large_file_url %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user