Project

General

Profile

Patch #21474 ยป 0001-Added-issue-css-classes-to-issue-show-tr.patch

Anonymous, 2015-12-10 16:34

View differences:

app/helpers/issues_helper.rb
107 107
  def render_descendants_tree(issue)
108 108
    s = '<form><table class="list issues">'
109 109
    issue_list(issue.descendants.visible.preload(:status, :priority, :tracker).sort_by(&:lft)) do |child, level|
110
      css = "issue issue-#{child.id} hascontextmenu"
110
      css = "issue issue-#{child.id} hascontextmenu #{issue.css_classes}"
111 111
      css << " idnt idnt-#{level}" if level > 0
112 112
      s << content_tag('tr',
113 113
             content_tag('td', check_box_tag("ids[]", child.id, false, :id => nil), :class => 'checkbox') +
app/views/issues/_relations.html.erb
11 11
<table class="list issues">
12 12
<% @relations.each do |relation| %>
13 13
  <% other_issue = relation.other_issue(@issue) -%>
14
  <tr class="issue hascontextmenu" id="relation-<%= relation.id %>">
14
  <tr class="issue hascontextmenu <%= other_issue.css_classes %>" id="relation-<%= relation.id %>">
15 15
  <td class="checkbox"><%= check_box_tag("ids[]", other_issue.id, false, :id => nil) %></td>
16 16
  <td class="subject" style="width: 50%">
17 17
    <%= relation.to_s(@issue) {|other| link_to_issue(other, :project => Setting.cross_project_issue_relations?)}.html_safe %>
    (1-1/1)