summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-20 16:47:10 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-20 16:47:10 +0000
commit2ee11c9089f5390508dfb786b0cbb7c6030ae605 (patch)
tree84cfb8db3f1a13464921916dcc25944a2378fb39 /app
parent01105966d9581430a71536c6aa576594045b851b (diff)
downloadredmine-2ee11c9089f5390508dfb786b0cbb7c6030ae605.tar.gz
redmine-2ee11c9089f5390508dfb786b0cbb7c6030ae605.zip
Added status and priority related classes for each row on the issue list so that a custom theme can colorize issues by priority or status.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@857 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/issues/_list.rhtml2
-rw-r--r--app/views/issues/_list_simple.rhtml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/issues/_list.rhtml b/app/views/issues/_list.rhtml
index b81559c29..a3feb8c38 100644
--- a/app/views/issues/_list.rhtml
+++ b/app/views/issues/_list.rhtml
@@ -13,7 +13,7 @@
</tr></thead>
<tbody>
<% issues.each do |issue| %>
- <tr class="issue <%= cycle('odd', 'even') %>">
+ <tr class="issue <%= cycle('odd', 'even') %> <%= "status-#{issue.status.position} priority-#{issue.priority.position}" %>">
<td class="checkbox"><%= check_box_tag("issue_ids[]", issue.id, false, :id => "issue_#{issue.id}", :disabled => (!@project || @project != issue.project)) %></td>
<td><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td>
<% query.columns.each do |column| %>
diff --git a/app/views/issues/_list_simple.rhtml b/app/views/issues/_list_simple.rhtml
index e527bdd3e..9051e46b8 100644
--- a/app/views/issues/_list_simple.rhtml
+++ b/app/views/issues/_list_simple.rhtml
@@ -7,7 +7,7 @@
</tr></thead>
<tbody>
<% for issue in issues %>
- <tr class="<%= cycle("odd", "even") %>">
+ <tr class="<%= cycle("odd", "even") %> <%= "status-#{issue.status.position} priority-#{issue.priority.position}" %>">
<td class="id">
<%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %>
</td>