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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user