% layout 'default'; % title "Thread #$thread->{'id'}";

<%= title %>

<%= $thread->{'title'} %> #<%= $thread->{'id'} %>

<%== markdown $thread->{'body'} =%>
<% if (is_mod) { =%> <% } =%>
<% if (my $first_remark = $remarks->[0]) { =%>

Remarks

<% for my $remark (@{$remarks}) { =%>

<%= $remark->{'date'} %> <%= link_to "#$remark->{'id'}", single_remark => {remark_id => $remark->{'id'}}, (class => 'post__id') %>

<%== markdown $remark->{'body'} =%>
<% } =%> <% if ($last_page && $last_page != 1) { =%> <% } =%>
<% } =%>