- <%= link_to ticket.id, ticket_path(ticket) %> |
- <% if CurrentUser.is_admin? %>
-
- <%= link_to_user ticket.creator %>
- |
-
- <% if ticket.claimant.nil? %>
- Unclaimed
- <% else %>
- <%= link_to_user ticket.claimant %>
+ Ticket Center
+
+
+
+ ID |
+ <% if CurrentUser.is_admin? %>
+ Reporter |
+ Claimed By |
<% end %>
-
- <% end %>
- <%= link_to ticket.type_title, ticket_path(ticket) %> |
+ Type |
+ Subject |
+ Status |
+ Updated |
+ Created |
+
+
- <% if !ticket.can_see_reason?(CurrentUser.user) %>
- Confidential |
- <% else %>
- <%= link_to h(strip_dtext(truncate(ticket.subject, length: 200))), action: "show", id: ticket.id %> |
- <% end %>
+
+ <% @tickets.each do |ticket| %>
+
+ <%= link_to ticket.id, ticket_path(ticket) %> |
+ <% if CurrentUser.is_admin? %>
+ <%= link_to_user ticket.creator %> |
+
+ <% if ticket.claimant.nil? %>
+ Unclaimed
+ <% else %>
+ <%= link_to_user ticket.claimant %>
+ <% end %>
+ |
+ <% end %>
+ <%= link_to ticket.type_title, ticket_path(ticket) %> |
- <%= pretty_ticket_status(ticket) %> |
- "><%= time_ago_in_words(ticket.updated_at) %> ago |
- "><%= time_ago_in_words(ticket.created_at) %> ago |
-
- <% end %>
-
-
+ <% if !ticket.can_see_reason?(CurrentUser.user) %>
+ | Confidential |
+ <% else %>
+ <%= link_to h(strip_dtext(truncate(ticket.subject, length: 200))), action: "show", id: ticket.id %> |
+ <% end %>
-
- <%= numbered_paginator(@tickets) %>
+
<%= pretty_ticket_status(ticket) %> |
+ "><%= time_ago_in_words(ticket.updated_at) %> ago |
+ "><%= time_ago_in_words(ticket.created_at) %> ago |
+
+ <% end %>
+