| 1 |
<%= render :partial => "projects/ac_project_header", :locals => { :tab => PRJ_TAB_TICKETS, |
| 2 |
:subtab => PRJ_TAB_SUBTAB_NONE, |
| 3 |
:project => @project, |
| 4 |
:pagetitle => @title } %> |
| 5 |
|
| 6 |
<%= div_formattedtext_open %> |
| 7 |
|
| 8 |
<table class='public' width='100%'> |
| 9 |
<thead> |
| 10 |
<th>Ticket</th> |
| 11 |
<th width='100'>Milestone</th> |
| 12 |
<th>Summary</th> |
| 13 |
<th width='<%= STYLE_TABLE_COL_WIDTH_USER_NAME %>'>Assignee</th> |
| 14 |
<th width='50'>Type</th> |
| 15 |
<th width='80'>Status</th> |
| 16 |
<th width='60'>Impact</th> |
| 17 |
<th width='60'>Priority</th> |
| 18 |
<% if @is_member %> |
| 19 |
<th colspan='2' width='<%= STYLE_TABLE_COL_WIDTH_ACTION_SHORT.to_i * 2 %>'></th> |
| 20 |
<% end %> |
| 21 |
</thead> |
| 22 |
<% for ticket in @tickets %> |
| 23 |
<tr> |
| 24 |
<td<%= " class='yellow'" if ticket.milestone_id == @current_milestone.id %>><%= link_to ticket.slug, project_ticket_path(@project.slug, ticket.slug) %></td> |
| 25 |
<td<%= " class='yellow'" if ticket.milestone_id == @current_milestone.id %>><%= ticket.name %></td> |
| 26 |
<td<%= " class='yellow'" if ticket.milestone_id == @current_milestone.id %>><div class='cut'> |
| 27 |
<%= "<span class='red'>" if ticket.priority == :critical %> |
| 28 |
|
| 29 |
<%= ticket.summary %> |
| 30 |
<%= "</span>" if ticket.priority == :critical %> |
| 31 |
</div></td> |
| 32 |
<td<%= " class='yellow'" if ticket.milestone_id == @current_milestone.id %>><%= ticket.fullname %></td> |
| 33 |
<td<%= " class='yellow'" if ticket.milestone_id == @current_milestone.id %>><%= ticket.formatted_ttype %></td> |
| 34 |
<td<%= " class='yellow'" if ticket.milestone_id == @current_milestone.id %>><%= ticket.status.to_s.capitalize %></td> |
| 35 |
<td<%= " class='yellow'" if ticket.milestone_id == @current_milestone.id %>><%= ticket.impact.to_s.capitalize %></td> |
| 36 |
<td<%= " class='yellow'" if ticket.milestone_id == @current_milestone.id %>><%= ticket.priority.to_s.capitalize %></td> |
| 37 |
<% if @is_member %> |
| 38 |
<td<%= " class='yellow'" if ticket.milestone_id == @current_milestone.id %> width=<%= STYLE_TABLE_COL_WIDTH_ACTION_SHORT %>><%= link_to("Edit", edit_project_ticket_path(@project.slug, ticket.slug)) %></td> |
| 39 |
<td<%= " class='yellow'" if ticket.milestone_id == @current_milestone.id %> width=<%= STYLE_TABLE_COL_WIDTH_ACTION_SHORT %>><%= link_to("Close", close_project_ticket_path(@project.slug, ticket.slug)) if ticket.status != :closed && ticket.status != :deleted %></td> |
| 40 |
<% end %> |
| 41 |
</tr> |
| 42 |
<% end %> |
| 43 |
</table> |
| 44 |
<br /> |
| 45 |
|
| 46 |
<%= div_formattedtext_close %> |
| 47 |
|
| 48 |
<%= render :partial => "projects/ac_project_footer" %> |