Show file extension next to file size in post preview
This commit is contained in:
committed by
GitHub
parent
572878fb0d
commit
49f71122fc
@@ -42,7 +42,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</p>
|
</p>
|
||||||
<p class="desc">
|
<p class="desc">
|
||||||
<%= link_to number_to_human_size(file_size), post.file_url %>
|
<%= link_to "#{number_to_human_size(file_size)} .#{file_ext}", post.file_url %>
|
||||||
(<%= post.image_width %>x<%= post.image_height %>)
|
(<%= post.image_width %>x<%= post.image_height %>)
|
||||||
</p>
|
</p>
|
||||||
<p class="desc">
|
<p class="desc">
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<% elsif show_size -%>
|
<% elsif show_size -%>
|
||||||
<p class="desc">
|
<p class="desc">
|
||||||
<%= link_to number_to_human_size(file_size), post.file_url %>
|
<%= link_to "#{number_to_human_size(file_size)} .#{file_ext}", post.file_url %>
|
||||||
(<%= post.image_width %>x<%= post.image_height %>)
|
(<%= post.image_width %>x<%= post.image_height %>)
|
||||||
</p>
|
</p>
|
||||||
<% elsif recommended -%>
|
<% elsif recommended -%>
|
||||||
|
|||||||
Reference in New Issue
Block a user