1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-01 03:57:15 +00:00

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
This commit is contained in:
Marius Balteanu 2024-09-06 20:48:16 +00:00
parent 794fe6a7cd
commit a26d885a3a
2 changed files with 8 additions and 2 deletions

View File

@ -328,6 +328,7 @@ tr.entry.file td.filename_no_report a { margin-left: 16px; }
tr span.expander, .gantt_subjects div > span.expander {background-position: 2px 50%; padding-left: 8px; margin-left: 0; cursor: pointer;}
.gantt_subjects div > span.expander {padding-left: 12px;}
.gantt_subjects div > span .icon-gravatar {float: none;}
.gantt_subjects svg {margin-left: 4px; margin-right: 4px;}
tr.changeset { height: 20px }
tr.changeset ul, ol { margin-top: 0px; margin-bottom: 0px; }

View File

@ -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