]> git.openstreetmap.org Git - rails.git/blob - app/views/diary_comments/_page.html.erb
Show 'api offline' message on new note page
[rails.git] / app / views / diary_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 ".post" %></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-body-secondary" unless comment.visible? %>"><%= link_to comment.diary_entry.title, diary_entry_path(comment.diary_entry.user, comment.diary_entry) %></td>
13       <td width="25%" class="<%= "text-body-secondary" unless comment.visible? %>">
14         <%= friendly_date_ago(comment.created_at) %>
15       </td>
16       <td width="50%" class="richtext text-break<%= " text-body-secondary" unless comment.visible? %>"><%= comment.body.to_html %></td>
17     </tr>
18     <% end -%>
19   </table>
20
21   <%= render "shared/pagination",
22              :newer_id => @newer_comments_id,
23              :older_id => @older_comments_id %>
24 </turbo-frame>