2022-08-24 04:35:35 +00:00
|
|
|
% layout 'main';
|
2022-09-21 01:16:42 +00:00
|
|
|
% title "Thread #$thread->{'id'}";
|
2022-08-24 04:35:35 +00:00
|
|
|
<h2><%= title %></h2>
|
|
|
|
<div class="threads">
|
|
|
|
<article class="thread">
|
2022-09-21 01:16:42 +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 04:35:35 +00:00
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
<nav>
|
2022-10-01 22:00:23 +00:00
|
|
|
<%= link_to Remark => post_remark => {thread_id => $thread->{'id'}} %>
|
2022-10-09 03:01:05 +00:00
|
|
|
<%= link_to Bump => bump_thread => {thread_id => $thread->{'id'}} %>
|
2022-10-14 03:57:58 +00:00
|
|
|
<%= link_to Flag => flag_thread => {thread_id => $thread->{'id'}} %>
|
2022-08-24 04:35:35 +00:00
|
|
|
</nav>
|
2022-09-21 01:16:42 +00:00
|
|
|
<% if (my $first_remark = $remarks->[0]) { =%>
|
2022-10-09 02:39:54 +00:00
|
|
|
<div class="remarks" id="remarks">
|
2022-08-24 04:35:35 +00:00
|
|
|
<h3>Remarks</h3>
|
2022-09-21 01:16:42 +00:00
|
|
|
<% for my $remark (@{$remarks}) { =%>
|
2022-08-24 04:35:35 +00:00
|
|
|
<article class="remark">
|
2022-09-21 05:28:50 +00:00
|
|
|
<nav class="id">
|
2022-09-03 17:05:54 +00:00
|
|
|
<%= link_to "#$remark->{'id'}",
|
2022-10-01 22:00:23 +00:00
|
|
|
single_remark => {remark_id => $remark->{'id'}} %>
|
2022-09-21 05:28:50 +00:00
|
|
|
</nav>
|
2022-09-21 01:16:42 +00:00
|
|
|
<h4 class="date"><%= $remark->{'date'} %></h4>
|
|
|
|
<h5 class="author"><%= $remark->{'author'} %></h5>
|
|
|
|
<p class="body"><%= $remark->{'body'} %></p>
|
2022-10-14 03:57:58 +00:00
|
|
|
<nav>
|
|
|
|
<%= link_to Flag => flag_remark => {remark_id => $remark->{'id'}} %>
|
|
|
|
</nav>
|
2022-08-24 04:35:35 +00:00
|
|
|
</article>
|
|
|
|
<% } =%>
|
|
|
|
</div>
|
2022-09-21 05:28:50 +00:00
|
|
|
<nav>
|
2022-10-01 22:00:23 +00:00
|
|
|
<%= link_to Remark => post_remark => {thread_id => $thread->{'id'}} %>
|
2022-09-21 05:28:50 +00:00
|
|
|
</nav>
|
2022-08-24 04:35:35 +00:00
|
|
|
<nav>
|
|
|
|
<% if ($last_page && $last_page != 1) { =%>
|
|
|
|
<%= pagination $this_page, $last_page, ($base_path . '/{page}') %>
|
2022-08-25 02:15:52 +00:00
|
|
|
<% } =%>
|
2022-08-24 04:35:35 +00:00
|
|
|
</nav>
|
|
|
|
<% } =%>
|