]> git.openstreetmap.org Git - rails.git/blob - app/views/users/changeset_comments/_page.html.erb
Merge remote-tracking branch 'upstream/pull/5560'
[rails.git] / app / views / users / changeset_comments / _page.html.erb
1 <turbo-frame id="pagination" target="_top" data-turbo="false">
2   <table class="table table-striped" width="100%">
3     <thead>
4       <tr>
5         <th width="25%"><%= t ".changeset" %></th>
6         <th width="25%"><%= t ".when" %></th>
7         <th width="50%"><%= t ".comment" %></th>
8       </tr>
9     </thead>
10     <% @comments.each do |comment| -%>
11     <tr>
12       <td width="25%" class="<%= "text-muted" unless comment.visible? %>"><%= link_to comment.changeset.id, changeset_path(comment.changeset) %></td>
13       <td width="25%" class="<%= "text-muted" unless comment.visible? %>"><span title="<%= l comment.created_at, :format => :friendly %>"><%= time_ago_in_words(comment.created_at, :scope => :"datetime.distance_in_words_ago") %></span></td>
14       <td width="50%" class="richtext text-break<%= " text-muted" unless comment.visible? %>"><%= comment.body.to_html %></td>
15     </tr>
16     <% end -%>
17   </table>
18
19   <%= render "shared/pagination",
20              :newer_id => @newer_comments_id,
21              :older_id => @older_comments_id %>
22 </turbo-frame>