posts: remove has_dimensions? method.

All posts have non-null width and height now that unsupported filetypes
have been purged.

https://danbooru.donmai.us/forum_topics/18027
This commit is contained in:
evazion
2021-03-15 02:20:13 -05:00
parent c29539d44e
commit 2d976cf557
3 changed files with 20 additions and 30 deletions

View File

@@ -15,9 +15,7 @@
<% end %>
<li id="post-info-size">
Size: <%= link_to_if policy(post).visible?, "#{number_to_human_size(post.file_size)} .#{post.file_ext}", post.tagged_file_url %>
<% if post.has_dimensions? %>
(<%= post.image_width %>x<%= post.image_height %>)
<% end %>
(<%= post.image_width %>x<%= post.image_height %>)
</li>
<li id="post-info-source">Source: <%= post_source_tag(post.source, post.normalized_source) %></li>
<li id="post-info-rating">Rating: <%= post.pretty_rating %></li>