Add type information to 'log costs' link

pull/6827/head
Hagen Schink 10 years ago
parent 307defd3a3
commit eb8d640fbf
  1. 1
      lib/open_project/costs/engine.rb

@ -111,6 +111,7 @@ module OpenProject::Costs
link :log_costs do link :log_costs do
{ {
href: new_work_packages_cost_entry_path(represented.model), href: new_work_packages_cost_entry_path(represented.model),
type: 'text/html',
title: "Log costs on #{represented.subject}" title: "Log costs on #{represented.subject}"
} if current_user_allowed_to(:log_costs, represented.model) } if current_user_allowed_to(:log_costs, represented.model)
end end

Loading…
Cancel
Save