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