diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2024-09-06 20:48:16 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2024-09-06 20:48:16 +0000 |
commit | a26d885a3a75de6287206ac4718385e6eac4643d (patch) | |
tree | d47b8be020cba7bfa91213188c6570a7f33d521c /lib | |
parent | 794fe6a7cd4738178da545e03dab02e9c89bd168 (diff) | |
download | redmine-a26d885a3a75de6287206ac4718385e6eac4643d.tar.gz redmine-a26d885a3a75de6287206ac4718385e6eac4643d.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/helpers/gantt.rb | 9 |
1 files changed, 7 insertions, 2 deletions
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 |