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