Update issues_show_hook_listener.rb

This commit is contained in:
2016-09-05 19:58:40 -04:00
committed by GitHub
parent eb390e09d8
commit d605f617e4

View File

@@ -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