Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 148
- Log:
Fix Ticket #93; date format was confusing. ISO-style "YYYY-MM-DD" now
shown instead. I *think* the short date format is only used in the
filtered ticket summary, since the date and time seem to be shown in
full elsewhere.
- Author:
- adh
- Date:
- Mon Nov 20 23:39:42 +0000 2006
- Size:
- 1894 Bytes
1 | <% @page_title = 'Tickets' %> |
2 | |
3 | <div id="content"> |
4 | <h1>Tickets</h1> |
5 | <%= render :partial => 'filter' %> |
6 | |
7 | <table class="listing" id="tickets"> |
8 | <thead> |
9 | <%= sort_header_tag('id', :caption => 'Ticket', :title => 'Sort by ticket #', :class => 'ticket-number') %> |
10 | <%= sort_header_tag('summary', :class => 'ticket-summary') %> |
11 | <%= sort_header_tag('status_id', :caption => 'Status', :title => 'Sort by status', :class => 'ticket-status') %> |
12 | <%= sort_header_tag('severity_id', :caption => 'Severity', :title => 'Sort by severity', :class => 'ticket-severity') %> |
13 | <%= sort_header_tag('part_id', :caption => 'Part', :title => 'Sort by part', :class => 'ticket-part') %> |
14 | <%= sort_header_tag('milestone_id', :caption => 'Milestone', :title => 'Sort by milestone', :class => 'ticket-milestone') %> |
15 | <%= sort_header_tag('release_id', :caption => 'Release', :title => 'Sort by release', :class => 'ticket-release') %> |
16 | <%= sort_header_tag('created_at', :caption => 'Created', :title => 'Sort by creation date', :class => 'ticket-created') %> |
17 | </thead> |
18 | <% @tickets.cycle do |ticket, css| %> |
19 | <tr class="<%= css -%>"> |
20 | <td class="ticket-number"><%= link_to "##{ticket.id}", :action => 'show', :id => ticket.id -%></td> |
21 | <td class="ticket-summary"><%= link_to h(ticket.summary), :action => 'show', :id => ticket.id -%></td> |
22 | |
23 | <td class="ticket-status"><%= ticket.status_name -%></td> |
24 | <td class="ticket-severity"><%= ticket.severity_name unless ticket.severity_name.nil? -%></td> |
25 | <td class="ticket-part"><%= ticket.part_name unless ticket.part_name.nil? -%></td> |
26 | <td class="ticket-milestone"><%= ticket.milestone_name unless ticket.milestone_name.nil? -%></td> |
27 | <td class="ticket-milestone"><%= ticket.release_name unless ticket.release_name.nil? -%></td> |
28 | <td class="ticket-created"><%= ticket.created_at.strftime("%Y-%m-%d") -%></td> |
29 | </tr> |
30 | <% end %> |
31 | </table> |
32 | </div> |