PostText/templates/thread_id.html.ep

34 lines
1.0 KiB
Plaintext
Raw Normal View History

2022-08-19 23:11:20 -04:00
% layout 'main';
% title "View Thread - #$thread->{'id'}";
2022-08-19 23:11:20 -04:00
<h2><%= title %></h2>
2022-08-23 21:20:23 -04:00
<div class="threads">
<article class="thread">
<h3 class="title"><%= %$thread{'title'} %></h3>
<h4 class="date"><%= %$thread{'date'} %></h4>
<h5 class="author"><%= %$thread{'author'} %></h5>
<p class="body"><%= %$thread{'body'} %></p>
</article>
</div>
<nav>
<%= link_to Remark => thread_id => {thread_id => $thread->{'id'}} %>
</nav>
2022-08-22 15:50:10 -04:00
<% if (my $first_remark = @$remarks[0]) { =%>
2022-08-24 00:21:18 -04:00
<div class="remarks">
<h3>Remarks</h3>
<% for my $remark (@$remarks) { =%>
<article class="remark">
<span class="id">#<%= %$remark{'id'} %></span>
<h4 class="date"><%= %$remark{'date'} %></h4>
<h5 class="author"><%= %$remark{'author'} %></h5>
<p class="body"><%= %$remark{'body'} %></p>
</article>
<% } =%>
</div>
<nav>
<%= link_to Remark => thread_id => {thread_id => $thread->{'id'}} %>
<% if ($last_page && $last_page != 1) { =%>
<%= pagination $this_page, $last_page, ($base_path . '/{page}') %>
<% } %>
</nav>
2022-08-20 12:42:04 -04:00
<% } =%>