% layout 'main'; % title 'View Threads';

<%= title %>

<% for my $thread (@$threads) { =%>
<%= link_to "#$thread->{'id'}", remark_page => {thread_id => $thread->{'id'}} %>

<%= %$thread{'title'} %>

<%= %$thread{'date'} %>

<%= %$thread{'author'} %>

<%= %$thread{'body'} %>

<%= link_to Remark => thread_id => {thread_id => $thread->{'id'}} %>
<% } =%>
<% if ($last_page && $last_page != 1) { =%> <% } =%>