mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-23 08:51:13 +00:00
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
This commit is contained in:
parent
97751b3d84
commit
daff49d5e5
@ -107,7 +107,7 @@ module IssuesHelper
|
|||||||
def render_descendants_tree(issue)
|
def render_descendants_tree(issue)
|
||||||
s = '<form><table class="list issues">'
|
s = '<form><table class="list issues">'
|
||||||
issue_list(issue.descendants.visible.preload(:status, :priority, :tracker).sort_by(&:lft)) do |child, level|
|
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
|
css << " idnt idnt-#{level}" if level > 0
|
||||||
s << content_tag('tr',
|
s << content_tag('tr',
|
||||||
content_tag('td', check_box_tag("ids[]", child.id, false, :id => nil), :class => 'checkbox') +
|
content_tag('td', check_box_tag("ids[]", child.id, false, :id => nil), :class => 'checkbox') +
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
<table class="list issues">
|
<table class="list issues">
|
||||||
<% @relations.each do |relation| %>
|
<% @relations.each do |relation| %>
|
||||||
<% other_issue = relation.other_issue(@issue) -%>
|
<% 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="checkbox"><%= check_box_tag("ids[]", other_issue.id, false, :id => nil) %></td>
|
||||||
<td class="subject" style="width: 50%">
|
<td class="subject" style="width: 50%">
|
||||||
<%= relation.to_s(@issue) {|other| link_to_issue(other, :project => Setting.cross_project_issue_relations?)}.html_safe %>
|
<%= relation.to_s(@issue) {|other| link_to_issue(other, :project => Setting.cross_project_issue_relations?)}.html_safe %>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user