diff --git a/app/views/post_replacements/index.html.erb b/app/views/post_replacements/index.html.erb index 8ad4e9b6f..356aec3a0 100644 --- a/app/views/post_replacements/index.html.erb +++ b/app/views/post_replacements/index.html.erb @@ -15,6 +15,8 @@ Post Source + MD5 + Size Replacer @@ -36,6 +38,37 @@ + + + <% if post_replacement.md5_was.present? && post_replacement.md5.present? %> +
+
Original MD5
+
<%= post_replacement.md5_was %>
+ +
Replacement MD5
+
<%= post_replacement.md5 %>
+
+ <% end %> + + + + <% if %i[image_width_was image_height_was file_size_was file_ext_was image_width image_height file_size file_ext].all? { |k| post_replacement[k].present? } %> +
+
Original Size
+
+ <%= post_replacement.image_width_was %>x<%= post_replacement.image_height_was %> + (<%= post_replacement.file_size_was.to_s(:human_size, precision: 4) %>, <%= post_replacement.file_ext_was %>) +
+ +
Replacement Size
+
+ <%= post_replacement.image_width %>x<%= post_replacement.image_height %> + (<%= post_replacement.file_size.to_s(:human_size, precision: 4) %>, <%= post_replacement.file_ext %>) +
+
+ <% end %> + + <%= compact_time post_replacement.created_at %>
by <%= link_to_user post_replacement.creator %>