Fix #4005: Add confirmation for unbanning a post.

This commit is contained in:
evazion
2018-12-10 00:39:02 -06:00
parent 61f6de5ff3
commit fe60672ef3

View File

@@ -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 %>