From daff49d5e5bfdb407567870d287bcfec875da791 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 16 Jan 2016 08:10:33 +0000 Subject: [PATCH] Adding issue css classes to issue subtasks and relations tr (#21474). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Patch by Codruț Gușoi. git-svn-id: http://svn.redmine.org/redmine/trunk@15061 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/issues_helper.rb | 2 +- app/views/issues/_relations.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 497bea380..0743fc022 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -107,7 +107,7 @@ module IssuesHelper def render_descendants_tree(issue) s = '
' issue_list(issue.descendants.visible.preload(:status, :priority, :tracker).sort_by(&:lft)) do |child, level| - css = "issue issue-#{child.id} hascontextmenu" + css = "issue issue-#{child.id} hascontextmenu #{issue.css_classes}" css << " idnt idnt-#{level}" if level > 0 s << content_tag('tr', content_tag('td', check_box_tag("ids[]", child.id, false, :id => nil), :class => 'checkbox') + diff --git a/app/views/issues/_relations.html.erb b/app/views/issues/_relations.html.erb index d3e7f4d0b..bfbd1f28c 100644 --- a/app/views/issues/_relations.html.erb +++ b/app/views/issues/_relations.html.erb @@ -11,7 +11,7 @@
<% @relations.each do |relation| %> <% other_issue = relation.other_issue(@issue) -%> - +
<%= check_box_tag("ids[]", other_issue.id, false, :id => nil) %> <%= relation.to_s(@issue) {|other| link_to_issue(other, :project => Setting.cross_project_issue_relations?)}.html_safe %> -- 2.39.5