]> git.openstreetmap.org Git - rails.git/blob - app/views/issues/_page.html.erb
ed23fb8cdc9e193f80b00db39d2583f9e9079df2
[rails.git] / app / views / issues / _page.html.erb
1 <table class="table table-sm">
2   <thead>
3     <tr>
4       <th><%= t ".status" %></th>
5       <th><%= t ".reports" %></th>
6       <th><%= t ".reported_item" %></th>
7       <th><%= t ".reported_user" %></th>
8       <th><%= t ".last_updated" %></th>
9     </tr>
10   </thead>
11   <tbody>
12     <% @issues.each do |issue| %>
13       <tr>
14         <td><%= t ".states.#{issue.status}" %></td>
15         <td class="text-nowrap"><%= link_to t(".reports_count", :count => issue.reports_count), issue %></td>
16         <td><%= link_to reportable_title(issue.reportable), reportable_url(issue.reportable) %></td>
17         <td><%= link_to issue.reported_user.display_name, issue.reported_user if issue.reported_user %></td>
18         <td>
19           <% if issue.user_updated %>
20             <%= t ".last_updated_time_ago_user_html", :user => link_to(issue.user_updated.display_name, issue.user_updated),
21                                                       :time_ago => friendly_date_ago(issue.updated_at) %>
22           <% else %>
23             <%= friendly_date_ago(issue.updated_at) %>
24           <% end %>
25         </td>
26       </tr>
27     <% end %>
28   </tbody>
29 </table>
30 <%= render "shared/pagination",
31            :newer_key => "issues.page.newer_issues",
32            :older_key => "issues.page.older_issues",
33            :newer_id => @newer_issues_id,
34            :older_id => @older_issues_id %>