mirror of
https://github.com/tildeverse/lobsters
synced 2024-06-14 21:16:37 +00:00
44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
<div class="box wide">
|
|
<div class="legend right">
|
|
<%= link_to_different_page('Unread', replies_unread_path) %> |
|
|
<%= link_to_different_page('All', replies_path) %> |
|
|
<%= link_to_different_page('Comments', replies_comments_path) %> |
|
|
<%= link_to_different_page('Stories', replies_stories_path) %>
|
|
</div>
|
|
|
|
<div class="legend">
|
|
<%= @heading %>
|
|
</div>
|
|
</div>
|
|
|
|
<ol class="comments comments1">
|
|
<% @replies.each do |reply| %>
|
|
<li class="comments_subtree">
|
|
<%= render "comments/comment",
|
|
comment: reply.comment,
|
|
show_story: true,
|
|
is_unread: reply.is_unread,
|
|
show_tree_lines: false %>
|
|
<ol class="comments"></ol>
|
|
</li>
|
|
<% end %>
|
|
</ol>
|
|
|
|
<% if @replies.count > RepliesController::REPLIES_PER_PAGE && @filter != 'unread'%>
|
|
<div class="morelink">
|
|
<% if @page && @page > 1 %>
|
|
<a href="/replies<%= @page == 2 ? "" : "/page/#{@page - 1}" %>"><<
|
|
Page <%= @page - 1 %></a>
|
|
<% end %>
|
|
|
|
<% if @replies.any? %>
|
|
<% if @page && @page > 1 %>
|
|
|
|
|
<% end %>
|
|
|
|
<a href="/replies/page/<%= @page + 1 %>">Page
|
|
<%= @page + 1 %> >></a>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|