PostText/templates/list_page.html.ep

29 lines
938 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-09-21 01:28:50 -04:00
<nav class="id">
2022-09-20 21:16:42 -04:00
<%= link_to "#$thread->{'id'}",
2022-09-02 22:45:41 -04:00
thread_page => {thread_id => $thread->{'id'}} %>
2022-09-21 01:28:50 -04:00
</nav>
<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-09-21 01:28:50 -04:00
<nav class="remarks">
2022-09-20 21:16:42 -04:00
<%= link_to Remark => thread_id => {thread_id => $thread->{'id'}} %>
<%= link_to thread_page => {thread_id => $thread->{'id'}}, begin %>
(<%= $thread->{'remark_count'} %> remarks)
<% end %>
2022-09-21 01:28:50 -04:00
</nav>
</article>
<% } =%>
</div>
<% if ($last_page && $last_page != 1) { =%>
<nav>
<%= pagination $this_page, $last_page, ($base_path . '/{page}') %>
</nav>
<% } =%>