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

@@ -22,9 +22,7 @@
<span class="info">
<strong>Size</strong>
<%= link_to "#{upload.post.file_size.to_s(:human_size, precision: 4)} #{upload.post.file_ext}", upload.post.file_url %>
<% if upload.post.has_dimensions? %>
(<%= upload.post.image_width %>x<%= upload.post.image_height %>)
<% end %>
(<%= upload.post.image_width %>x<%= upload.post.image_height %>)
</span>
<% end %>
<br>