From a26d885a3a75de6287206ac4718385e6eac4643d Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Fri, 6 Sep 2024 20:48:16 +0000 Subject: Replaces project, version and issue icons from Gantt view with SVG icons (#23980). git-svn-id: https://svn.redmine.org/redmine/trunk@23029 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/helpers/gantt.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index ad676ec6f..c2fc285a7 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -726,6 +726,7 @@ module Redmine css_classes << ' over-end-date' if progress_date > self.date_to end s = (+"").html_safe + s << view.sprite_icon('issue').html_safe s << view.assignee_avatar(issue.assigned_to, :size => 13, :class => 'icon-gravatar') s << view.link_to_issue(issue).html_safe s << view.content_tag(:input, nil, :type => 'checkbox', :name => 'ids[]', @@ -745,14 +746,18 @@ module Redmine html_class << ' behind-start-date' if progress_date < self.date_from html_class << ' over-end-date' if progress_date > self.date_to end - s = view.link_to_version(version).html_safe + s = (+"").html_safe + s << view.sprite_icon('package').html_safe + s << view.link_to_version(version).html_safe view.content_tag(:span, s, :class => html_class).html_safe when Project project = object html_class = +"" html_class << 'icon icon-projects ' html_class << (project.overdue? ? 'project-overdue' : '') - s = view.link_to_project(project).html_safe + s = (+"").html_safe + s << view.sprite_icon('projects').html_safe + s << view.link_to_project(project).html_safe view.content_tag(:span, s, :class => html_class).html_safe end end -- cgit v1.2.3