disable direct image url

This commit is contained in:
albert
2013-03-09 13:07:44 -05:00
parent 430b967118
commit e23fc28379

View File

@@ -6,7 +6,7 @@
<li>Approver: <%= link_to(post.approver.name, user_path(post.approver_id)) %></li>
<% end %>
<li>
Size: <%= link_to number_to_human_size(post.file_size), post.file_url %>
Size: <%= link_to_if Danbooru.config.can_user_see_post?(CurrentUser.user, post), number_to_human_size(post.file_size), post.file_url %>
<% if post.is_image? %>
(<%= post.image_width %>x<%= post.image_height %>)
<% end %>