% layout 'default';
% title 'Threads List';
<%= title %>
<% for my $thread (@{$threads}) { =%>
<%= link_to single_thread => {thread_id => $thread->{'id'}}, begin %>
<%= $thread->{'title'} %>
<% end %>
<%= $thread->{'date'} %>
<%= $thread->{'author'} %>
<%== markdown truncate_text $thread->{'body'} %>
<% } =%>
<% if ($last_page && $last_page != 1) { =%>
<% } =%>