2014-04-26 21:50:58 +00:00
|
|
|
<table class="issues striped">
|
2014-03-23 00:22:25 +00:00
|
|
|
<tr>
|
2014-04-26 21:50:58 +00:00
|
|
|
<th class="date">Created</th>
|
|
|
|
<th class="title">Title</th>
|
|
|
|
<th class="assinged">Assigned</th>
|
|
|
|
<th class="author">Author</th>
|
|
|
|
<th class="actions"></th>
|
2014-03-23 00:22:25 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<% issues.each do |issue| %>
|
2014-04-26 21:50:58 +00:00
|
|
|
<tr>
|
2014-03-23 00:22:25 +00:00
|
|
|
<td><%= issue.created_at.strftime("%Y-%m-%d %H:%M:%S") %></td>
|
|
|
|
<td><%= namelink issue %></td>
|
|
|
|
<td><%= namelink issue.assigned %></td>
|
|
|
|
<td><%= namelink issue.author %></td>
|
2014-04-26 21:50:58 +00:00
|
|
|
<td class="actions">
|
2014-03-23 00:22:25 +00:00
|
|
|
<% if issue.can_update? cuser %>
|
2014-04-26 21:50:58 +00:00
|
|
|
<%= link_to icon('pencil'), edit_issue_path(issue) %>
|
|
|
|
<% end %>
|
|
|
|
<% if issue.can_destroy? cuser %>
|
|
|
|
<%= link_to icon('times'), issue, confirm: 'Are you sure?', method: :delete %>
|
2014-03-23 00:22:25 +00:00
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|