Fix #4005: Add confirmation for unbanning a post.
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
<% end %>
|
||||
|
||||
<% if post.is_banned? %>
|
||||
<li><%= link_to "Unban", unban_moderator_post_post_path(post), :method => :post %></li>
|
||||
<li><%= link_to "Unban", unban_moderator_post_post_path(post), method: :post, "data-confirm": "Are you sure you want to unban this post?" %></li>
|
||||
<% else %>
|
||||
<li><%= link_to "Ban", confirm_ban_moderator_post_post_path(post) %></li>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user