1 <turbo-frame id="pagination" target="_top">
2 <table class="table table-striped" width="100%">
5 <th width="25%"><%= t ".post" %></th>
6 <th width="25%"><%= t ".when" %></th>
7 <th width="50%"><%= t ".comment" %></th>
10 <% @comments.each do |comment| -%>
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) %>
16 <td width="50%" class="richtext text-break<%= " text-body-secondary" unless comment.visible? %>"><%= comment.body.to_html %></td>
21 <%= render "shared/pagination",
22 :newer_key => "diary_comments.page.newer_comments",
23 :older_key => "diary_comments.page.older_comments",
24 :newer_id => @newer_comments_id,
25 :older_id => @older_comments_id %>