From b5e647dc51daa79c18d8b143aa502bd506c6be57 Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 13 Jul 2020 18:03:40 -0500 Subject: [PATCH] posts: add file type to post info. --- app/views/posts/partials/show/_information.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/posts/partials/show/_information.html.erb b/app/views/posts/partials/show/_information.html.erb index 0b57fa1b7..d38697558 100644 --- a/app/views/posts/partials/show/_information.html.erb +++ b/app/views/posts/partials/show/_information.html.erb @@ -16,7 +16,7 @@ <% end %>
  • - Size: <%= link_to_if policy(post).visible?, number_to_human_size(post.file_size), post.tagged_file_url %> + 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 %>