summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-16 08:10:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-16 08:10:33 +0000
commitdaff49d5e5bfdb407567870d287bcfec875da791 (patch)
treee058c3b25c693a938fc7ae9091430d0835c96a4b /app
parent97751b3d8482c295017efaf125ca3db5ddedd36a (diff)
downloadredmine-daff49d5e5bfdb407567870d287bcfec875da791.tar.gz
redmine-daff49d5e5bfdb407567870d287bcfec875da791.zip
Adding issue css classes to issue subtasks and relations tr (#21474).
Patch by Codruț Gușoi. git-svn-id: http://svn.redmine.org/redmine/trunk@15061 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/helpers/issues_helper.rb2
-rw-r--r--app/views/issues/_relations.html.erb2
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 = '<form><table class="list issues">'
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 @@
<table class="list issues">
<% @relations.each do |relation| %>
<% other_issue = relation.other_issue(@issue) -%>
- <tr class="issue hascontextmenu" id="relation-<%= relation.id %>">
+ <tr class="issue hascontextmenu <%= other_issue.css_classes %>" id="relation-<%= relation.id %>">
<td class="checkbox"><%= check_box_tag("ids[]", other_issue.id, false, :id => nil) %></td>
<td class="subject" style="width: 50%">
<%= relation.to_s(@issue) {|other| link_to_issue(other, :project => Setting.cross_project_issue_relations?)}.html_safe %>