2022-07-29 00:44:47 +00:00
|
|
|
% layout 'main';
|
|
|
|
% title 'View Threads';
|
|
|
|
<h2><%= title %></h2>
|
2022-08-05 02:46:35 +00:00
|
|
|
<div class="threads">
|
|
|
|
<% for my $thread (@$threads) { =%>
|
|
|
|
<article class="thread">
|
2022-08-23 03:09:48 +00:00
|
|
|
<span class="id">
|
2022-08-24 04:21:18 +00:00
|
|
|
<%= link_to "#$thread->{'id'}", remark_page => {thread_id => $thread->{'id'}} %>
|
2022-08-23 03:09:48 +00:00
|
|
|
</span>
|
2022-08-05 02:46:35 +00:00
|
|
|
<h3 class="title"><%= %$thread{'title'} %></h3>
|
|
|
|
<h4 class="date"><%= %$thread{'date'} %></h4>
|
|
|
|
<h5 class="author"><%= %$thread{'author'} %></h5>
|
|
|
|
<p class="body"><%= %$thread{'body'} %></p>
|
2022-08-24 01:48:30 +00:00
|
|
|
<%= link_to Remark => thread_id => {thread_id => $thread->{'id'}} %>
|
2022-08-05 02:46:35 +00:00
|
|
|
</article>
|
|
|
|
<% } =%>
|
|
|
|
</div>
|
2022-08-14 22:30:22 +00:00
|
|
|
<% if ($last_page && $last_page != 1) { =%>
|
|
|
|
<nav>
|
|
|
|
<%= pagination $this_page, $last_page, ($base_path . '/{page}') %>
|
|
|
|
</nav>
|
|
|
|
<% } =%>
|