]> git.openstreetmap.org Git - rails.git/blob - app/views/users/changeset_comments/_page.html.erb
Merge pull request #7302 from tomhughes/terms-locale
[rails.git] / app / views / users / changeset_comments / _page.html.erb
1 <%# locals: (comments:, params:) %>
2
3 <turbo-frame id="pagination" target="_top" data-turbo="false">
4   <%= render "pagination", :paginator => comments, :params => params %>
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.items.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? %>"><%= friendly_date_ago comment.created_at %></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 "pagination", :paginator => comments, :params => params %>
24 </turbo-frame>