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