2022-11-29 04:22:25 +00:00
|
|
|
% layout 'default';
|
2022-10-01 22:00:23 +00:00
|
|
|
% title 'Threads List';
|
|
|
|
<h2><%= title %></h2>
|
|
|
|
<div class="threads">
|
|
|
|
<% for my $thread (@{$threads}) { =%>
|
|
|
|
<article class="thread">
|
|
|
|
<nav class="id">
|
|
|
|
<%= link_to "#$thread->{'id'}",
|
|
|
|
single_thread => {thread_id => $thread->{'id'}} %>
|
|
|
|
</nav>
|
|
|
|
<h3 class="title"><%= $thread->{'title'} %></h3>
|
|
|
|
<h4 class="date"><%= $thread->{'date'} %></h4>
|
|
|
|
<h5 class="author"><%= $thread->{'author'} %></h5>
|
|
|
|
<p class="body"><%= truncate_text $thread->{'body'} %></p>
|
|
|
|
<nav class="remarks">
|
|
|
|
<%= link_to Remark => post_remark => {thread_id => $thread->{'id'}} %>
|
2022-10-09 02:39:54 +00:00
|
|
|
<%= link_to url_for(single_thread => {thread_id => $thread->{'id'}})
|
|
|
|
->fragment('remarks'), begin %>
|
2022-10-01 22:00:23 +00:00
|
|
|
(<%= $thread->{'remark_count'} %> remarks)
|
|
|
|
<% end %>
|
|
|
|
</nav>
|
2022-10-08 05:58:18 +00:00
|
|
|
<nav class="bumps">
|
|
|
|
<%= link_to bump_thread => {thread_id => $thread->{'id'}}, begin %>
|
2022-10-19 00:31:07 +00:00
|
|
|
Bump (<%= $thread->{'bump_tally'} %> bumps)
|
2022-10-08 05:58:18 +00:00
|
|
|
<% end %>
|
|
|
|
</nav>
|
2022-10-14 03:57:58 +00:00
|
|
|
<nav>
|
|
|
|
<%= link_to Flag => flag_thread => {thread_id => $thread->{'id'}} %>
|
|
|
|
</nav>
|
2022-10-01 22:00:23 +00:00
|
|
|
</article>
|
|
|
|
<% } =%>
|
|
|
|
</div>
|
|
|
|
<% if ($last_page && $last_page != 1) { =%>
|
|
|
|
<nav>
|
|
|
|
<%= pagination $this_page, $last_page, ($base_path . '/{page}') %>
|
|
|
|
</nav>
|
|
|
|
<% } =%>
|