PostText/templates/list_page.html.ep

23 lines
735 B
Plaintext
Raw Normal View History

% layout 'main';
2022-08-24 00:48:48 -04:00
% title 'Threads List';
<h2><%= title %></h2>
<div class="threads">
<% for my $thread (@$threads) { =%>
<article class="thread">
2022-08-22 23:09:48 -04:00
<span class="id">
2022-08-24 00:21:18 -04:00
<%= link_to "#$thread->{'id'}", remark_page => {thread_id => $thread->{'id'}} %>
2022-08-22 23:09:48 -04:00
</span>
<h3 class="title"><%= %$thread{'title'} %></h3>
<h4 class="date"><%= %$thread{'date'} %></h4>
<h5 class="author"><%= %$thread{'author'} %></h5>
<p class="body"><%= %$thread{'body'} %></p>
<%= link_to Remark => thread_id => {thread_id => $thread->{'id'}} %>
</article>
<% } =%>
</div>
<% if ($last_page && $last_page != 1) { =%>
<nav>
<%= pagination $this_page, $last_page, ($base_path . '/{page}') %>
</nav>
<% } =%>