mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Added button text to locale file
This commit is contained in:
@@ -80,4 +80,6 @@ en:
|
||||
label_load_customer: "Load Customer"
|
||||
label_door: "Door"
|
||||
label_trim: "Trim"
|
||||
label_bill_time: "Bill Time"
|
||||
label_share: "Share"
|
||||
|
||||
@@ -60,9 +60,10 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
|
||||
})
|
||||
end
|
||||
|
||||
# Display Buttons under the issue above subtasks
|
||||
def view_issues_show_description_bottom(context={})
|
||||
bill_button = button_to "Bill Time", bill_path( context[:issue].id ), method: :get if User.current.admin?
|
||||
share_button = button_to "Share", share_path( context[:issue].id ), method: :get if User.current.logged?
|
||||
bill_button = button_to I18n.t(:label_bill_time), bill_path( context[:issue].id ), method: :get if User.current.admin?
|
||||
share_button = button_to I18n.t(:label_share), share_path( context[:issue].id ), method: :get if User.current.logged?
|
||||
return "<br/> #{bill_button} #{share_button}"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user