]> source.dussan.org Git - redmine.git/commitdiff
Added status and priority related classes for each row on the issue list so that...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 20 Oct 2007 16:47:10 +0000 (16:47 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 20 Oct 2007 16:47:10 +0000 (16:47 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@857 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/_list.rhtml
app/views/issues/_list_simple.rhtml

index b81559c29532ab9e7f62eb73fd312852d3b12111..a3feb8c3888d62ffd90cdbb2a93d92a229f56285 100644 (file)
@@ -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| %>
index e527bdd3e286ffe821408e01bf329cb03133ac35..9051e46b880f4c280eff61bd2396a89d2e18b284 100644 (file)
@@ -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>