diff --git a/app/views/bans/index.html.erb b/app/views/bans/index.html.erb
index e73d72bc5..29912a862 100644
--- a/app/views/bans/index.html.erb
+++ b/app/views/bans/index.html.erb
@@ -18,8 +18,10 @@
<%= ban.expires_at %> |
<%= ban.reason %> |
- <%= link_to "Edit", edit_ban_path(ban) %>
- | <%= link_to "Delete", ban_path(ban), :method => :delete, :remote => true %>
+ <% if CurrentUser.is_moderator? %>
+ <%= link_to "Edit", edit_ban_path(ban) %>
+ | <%= link_to "Delete", ban_path(ban), :method => :delete, :remote => true %>
+ <% end %>
|
<% end %>
diff --git a/app/views/posts/partials/show/_options.html.erb b/app/views/posts/partials/show/_options.html.erb
index b14d385f6..bd4396543 100644
--- a/app/views/posts/partials/show/_options.html.erb
+++ b/app/views/posts/partials/show/_options.html.erb
@@ -2,28 +2,26 @@
<% if post.is_image? %>
<%= resize_image_links(post, CurrentUser.user) %>
<% end %>
- <%= link_to "Edit", post_path(post), :id => "side-edit-link" %>
<% if CurrentUser.is_member? %>
+ <%= link_to "Edit", post_path(post), :id => "side-edit-link" %>
<%= link_to "Favorite", favorites_path(:post_id => post.id), :remote => true, :method => :post, :id => "add-to-favorites" %>
<%= link_to "Unfavorite", favorite_path(post), :remote => true, :method => :delete, :id => "remove-from-favorites" %>
- <% end %>
- <%= link_to "Translate", "#", :id => "translate", :title => "Shortcut is CTRL+N" %>
- <% unless post.is_status_locked? %>
- <%= link_to "Flag", new_post_flag_path(:post_id => post.id), :id => "flag" %>
- <%= link_to "Appeal", new_post_appeal_path(:post_id => post.id), :id => "appeal" %>
- <% if CurrentUser.is_janitor? %>
- <%= link_to "Approve", moderator_post_approval_path(:post_id => post.id), :remote => true, :method => :post, :id => "approve" %>
- <%= link_to "Disapprove", moderator_post_disapproval_path(:post_id => post.id), :remote => true, :method => :post, :id => "disapprove" %>
- <% end %>
- <% if CurrentUser.is_moderator? %>
- <%= link_to "Undelete", undelete_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "undelete" %>
- <%= link_to "Delete", delete_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "delete" %>
+ <%= link_to "Pool", "#", :id => "pool" %>
+ <%= link_to "Translate", "#", :id => "translate", :title => "Shortcut is CTRL+N" %>
+ <% unless post.is_status_locked? %>
+ <%= link_to "Flag", new_post_flag_path(:post_id => post.id), :id => "flag" %>
+ <%= link_to "Appeal", new_post_appeal_path(:post_id => post.id), :id => "appeal" %>
+ <% if CurrentUser.is_janitor? %>
+ <%= link_to "Approve", moderator_post_approval_path(:post_id => post.id), :remote => true, :method => :post, :id => "approve" %>
+ <%= link_to "Disapprove", moderator_post_disapproval_path(:post_id => post.id), :remote => true, :method => :post, :id => "disapprove" %>
+ <% end %>
+ <% if CurrentUser.is_moderator? %>
+ <%= link_to "Undelete", undelete_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "undelete" %>
+ <%= link_to "Delete", delete_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "delete" %>
+ <% end %>
<% end %>
<% end %>
-
<% if CurrentUser.is_admin? %>
<%= link_to "Annihilate", annihilate_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "annihilate", :confirm => "This will permanently delete this post (meaning the file will be deleted). Are you sure you want to annihilate this post?" %>
<% end %>
-
- <%= link_to "Pool", "#", :id => "pool" %>
\ No newline at end of file