From fe60672ef3135c765bf695a8b45f77b579ef99ab Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 10 Dec 2018 00:39:02 -0600 Subject: [PATCH] Fix #4005: Add confirmation for unbanning a post. --- app/views/posts/partials/show/_options.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/posts/partials/show/_options.html.erb b/app/views/posts/partials/show/_options.html.erb index 2237b2c4e..6aea58907 100644 --- a/app/views/posts/partials/show/_options.html.erb +++ b/app/views/posts/partials/show/_options.html.erb @@ -43,7 +43,7 @@ <% end %> <% if post.is_banned? %> -
  • <%= link_to "Unban", unban_moderator_post_post_path(post), :method => :post %>
  • +
  • <%= link_to "Unban", unban_moderator_post_post_path(post), method: :post, "data-confirm": "Are you sure you want to unban this post?" %>
  • <% else %>
  • <%= link_to "Ban", confirm_ban_moderator_post_post_path(post) %>
  • <% end %>