Reference planning elements in wikis via work package

pull/243/head
Hagen Schink 11 years ago committed by Jens Ulferts
parent 3d6d8bd192
commit 3a8f9e5ba1
  1. 4
      app/helpers/application_helper.rb

@ -1157,7 +1157,7 @@ module ApplicationHelper
end
link_to(h(text),
project_planning_element_path(planning_element.project, planning_element),
work_package_path(planning_element),
:title => planning_element.subject)
end
@ -1188,7 +1188,7 @@ module ApplicationHelper
end
link = link_to(h("*#{planning_element.id} #{planning_element.planning_element_status.nil? ? "" : planning_element.planning_element_status.name + ":"} #{planning_element.subject} "),
project_planning_element_path(planning_element.project, planning_element),
work_package_path(planning_element),
:title => h("#{truncate(planning_element.subject, :length => 100)} #{planning_element.planning_element_status.nil? ? "" :
"(" + planning_element.planning_element_status.name + ")"}"))
link += "#{planning_element.start_date.nil? ? "[?]" : planning_element.start_date.to_s}#{start_date_change}#{planning_element.end_date.nil? ? "[?]" :

Loading…
Cancel
Save