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:
@@ -39,9 +39,12 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
|
||||
end
|
||||
|
||||
v = Vehicle.find_by_id(issue.vehicles_id)
|
||||
if v?
|
||||
#vehicle = v ? v.to_s : nil
|
||||
vehicle = link_to v.to_s, v
|
||||
vin = v ? v.vin : nil
|
||||
vehicle = link_to v.to_s, "#{Redmine::Utils::relative_url_root }/vehicles/#{v.id}",
|
||||
vin = v ? v.vin
|
||||
notes = n.notes
|
||||
end
|
||||
|
||||
return "
|
||||
<div class=\"attributes\">
|
||||
@@ -78,6 +81,10 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
|
||||
<div class=\"value\">#{vin}</div>
|
||||
</div>
|
||||
|
||||
<div class=\"vehicle_notes attribute\">
|
||||
<div class=\"label\"><span>Notes</span>:</div>
|
||||
<div class=\"value\">#{notes}</div>
|
||||
</div>
|
||||
</div>"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user