_list_simple.rhtml

sunday walker, 2008-02-11 14:16

Download (918 Bytes)

 
1
<% if issues.length > 0 %>
2
        <table class="list">                
3
                <thead><tr>
4
                <th>#</th>
5
                <th><%=l(:field_tracker)%></th>
6
                <th><%=l(:field_subject)%></th>
7
                </tr></thead>
8
                <tbody>        
9
                <% for issue in issues %>
10
                <tr id="issue-<%= issue.id %>" class="issue hascontextmenu <%= cycle('odd', 'even') %> <%= "status-#{issue.status.position} priority-#{issue.priority.position}" %>">
11
                        <td class="id">
12
                                <%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %>
13
                        </td>
14
                        <td><%=h issue.total('project').name %> - <%= issue.tracker.name %><br />
15
                <%= issue.total('status').name %> - <%= format_time(issue.updated_on) %></td>
16
                        <td class="subject">
17
                <%= link_to h(issue.subject), :controller => 'issues', :action => 'show', :id => issue %>
18
            </td>
19
                </tr>
20
                <% end %>
21
                </tbody>
22
        </table>
23
<% else %>
24
        <i><%=l(:label_no_data)%></i>
25
<% end %>