% layout 'default'; % title my $thread_id = $thread->{'id'} ? "Thread #$thread_id" : '?';

<%= title %> <%= link_to txt => url_for . '.txt' %>

<% if (keys %{$thread}) { =%> <% content_for open_graph => begin %> <% end %> <% content_for twitter_card => begin %> <% end %>

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

<%== markdown $thread->{'body'} =%>
<% if (is_mod) { =%> <% } =%>
<% } =%> <% if (keys %{$thread} && scalar @{$remarks}) { =%>

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) { =%> <% } =%>
<% } =%>