PostText/templates/list_page.html.ep

24 lines
745 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-09-02 18:11:23 -04:00
<%= link_to "#$thread->{'id'}",
2022-09-02 22:45:41 -04:00
thread_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>
<% } =%>