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.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/link_helper.rb b/app/helpers/link_helper.rb
index 9b0b4e10..2121133e 100644
--- a/app/helpers/link_helper.rb
+++ b/app/helpers/link_helper.rb
@@ -39,9 +39,9 @@ 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 = t("admin.common.unlock_confirm",
43 "Locked by #{@node.lock_owner.login}\n" \ 43 :login => @node.lock_owner.login,
44 "Last modified #{@page.updated_at.to_fs(:db)}" 44 :time => @page.updated_at.to_fs(:db))
45 button_to 'Unlock', unlock_node_path(@node), 45 button_to 'Unlock', unlock_node_path(@node),
46 method: :put, 46 method: :put,
47 form: { data: { confirm: message }, class: 'button_to state_changing' } 47 form: { data: { confirm: message }, class: 'button_to state_changing' }