From e791f2c2774adfbf8db5a2009d8b8da70b7aee94 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 28 Aug 2015 17:33:12 +0800 Subject: [PATCH] small fix --- app/views/admin/registered_sites/_index.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/admin/registered_sites/_index.html.erb b/app/views/admin/registered_sites/_index.html.erb index 4a691c2..50a9a59 100644 --- a/app/views/admin/registered_sites/_index.html.erb +++ b/app/views/admin/registered_sites/_index.html.erb @@ -48,9 +48,9 @@ <% else %> <%= "&keywords=#{params[:keywords]}" if params[:keywords] %>" class="btn btn-warning" data-remote="true">Revoke <% end %> - <%# if current_user.is_admin? %> - <%= "&keywords=#{params[:keywords]}" if params[:keywords] %>" class="btn btn-danger" data-remote="true" data-method="delete"> - <%# end %> + <% if current_user.is_admin? %> + <%= "&keywords=#{params[:keywords]}" if params[:keywords] %>" class="btn btn-danger" data-remote="true" data-method="delete" data-confirm="Are you sure?"> + <% end %> <% end %>