fixes #2165
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<li>Approver: <%= link_to_user(post.approver) %></li>
|
||||
<% end %>
|
||||
<li>
|
||||
Size: <%= link_to_if Danbooru.config.can_user_see_post?(CurrentUser.user, post), number_to_human_size(post.file_size), post.file_url %>
|
||||
Size: <%= link_to_if post.visible?, number_to_human_size(post.file_size), post.file_url %>
|
||||
<% if post.is_image? %>
|
||||
(<%= post.image_width %>x<%= post.image_height %>)
|
||||
<% end %>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
<menu id="post-sections">
|
||||
<li><a href="#comments">Comments</a></li>
|
||||
<% if CurrentUser.is_member? && Danbooru.config.can_user_see_post?(CurrentUser.user, @post) %>
|
||||
<% if CurrentUser.is_member? && @post.visible? %>
|
||||
<li><a href="#edit" id="post-edit-link">Edit</a></li>
|
||||
<% end %>
|
||||
<li><a href="#share">Share</a></li>
|
||||
@@ -78,7 +78,7 @@
|
||||
<% end %>
|
||||
</section>
|
||||
|
||||
<% if CurrentUser.is_member? && Danbooru.config.can_user_see_post?(CurrentUser.user, @post) && (CurrentUser.is_gold? || !@post.is_banned?) %>
|
||||
<% if CurrentUser.is_member? && @post.visible? %>
|
||||
<section id="edit" style="display: none;">
|
||||
<%= render "posts/partials/show/edit", :post => @post %>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user