mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update issues_show_hook_listener.rb
This commit is contained in:
@@ -90,7 +90,7 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
|
||||
|
||||
def view_issues_show_description_bottom(context={})
|
||||
bill_button = button_to "Bill Time", "#{Redmine::Utils::relative_url_root}/qbo/bill/#{context[:issue].id}", method: :get if User.current.admin?
|
||||
share_button = button_to "Share", "#{Redmine::Utils::relative_url_root}/customers/view/#{context[:issue].share_token.token}", method: :get if User.current.logged_in?
|
||||
share_button = button_to "Share", "#{Redmine::Utils::relative_url_root}/customers/view/#{context[:issue].share_token.token}", method: :get if User.current.logged?
|
||||
return "<br/> #{bill_button} #{share_button}"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user