From e4ba2b7a5045231293dd5cd0b4cda7f2fa96b573 Mon Sep 17 00:00:00 2001 From: Arthur Neves Date: Mon, 22 Dec 2014 23:56:12 -0500 Subject: [PATCH] use data confirm --- app/views/apps/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/apps/show.html.haml b/app/views/apps/show.html.haml index 850332d..71b19b1 100644 --- a/app/views/apps/show.html.haml +++ b/app/views/apps/show.html.haml @@ -20,7 +20,7 @@ = link_to t('.all_errs'), app_path(app, :all_errs => true), :class => 'button' - if current_user.watching?(app) - = link_to t('.unwatch'), app_watcher_path({:app_id => app, :id => current_user.id}), :method => :delete, :class => 'button', :confirm => t('.are_you_sure') + = link_to t('.unwatch'), app_watcher_path({app_id: app, id: current_user.id}), method: :delete, class: 'button', data: {confirm: t('.are_you_sure')} %h3#watchers_toggle =t('.watchers') %span.click_span=t('.show_hide') -- libgit2 0.21.2