summaryrefslogtreecommitdiff
path: root/app/helpers/link_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/link_helper.rb')
-rw-r--r--app/helpers/link_helper.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/helpers/link_helper.rb b/app/helpers/link_helper.rb
index cb13c8df..ea6c26f9 100644
--- a/app/helpers/link_helper.rb
+++ b/app/helpers/link_helper.rb
@@ -39,11 +39,11 @@ module LinkHelper
39 end 39 end
40 40
41 def unlock_link 41 def unlock_link
42 message = "Are you sure you want to unlock?\n" + 42 message = "Are you sure you want to unlock?\n" \
43 "Locked by #{@node.lock_owner.login}\n" + 43 "Locked by #{@node.lock_owner.login}\n" \
44 "Last modified #{@page.updated_at.to_fs(:db)}" 44 "Last modified #{@page.updated_at.to_fs(:db)}"
45 45 button_to 'Unlock', unlock_node_path(@node),
46 link_to 'Unlock', unlock_node_path(@node), :method => :put, :data => { :confirm => message } 46 method: :put,
47 form: { data: { confirm: message } }
47 end 48 end
48
49end 49end