2021-12-04 05:11:37 +00:00
|
|
|
% layout 'default';
|
2021-12-19 22:43:58 +00:00
|
|
|
% title 'View';
|
2021-12-05 07:52:31 +00:00
|
|
|
<h2>Messages from the World Wide Web</h2>
|
2022-01-02 02:39:04 +00:00
|
|
|
<div class="articles">
|
2022-01-04 23:27:05 +00:00
|
|
|
<% for my $post (@$view_posts) { =%>
|
2022-01-02 02:39:04 +00:00
|
|
|
<article>
|
2022-01-04 23:27:05 +00:00
|
|
|
<h3><%= @$post[0] %></h3>
|
2022-01-02 02:39:04 +00:00
|
|
|
<section class="message field">
|
2022-01-04 23:27:05 +00:00
|
|
|
<blockquote><p><%= @$post[2] %></p></blockquote>
|
2022-01-02 02:39:04 +00:00
|
|
|
</section>
|
|
|
|
<section class="name field">
|
|
|
|
<figcaption>
|
2022-01-04 23:27:05 +00:00
|
|
|
- <%= @$post[1] %>
|
|
|
|
<% if (@$post[3]) { =%>
|
|
|
|
(<%= link_to Homepage => @$post[3] %>)
|
2022-01-02 02:39:04 +00:00
|
|
|
<% } =%>
|
|
|
|
</figcaption>
|
|
|
|
</section>
|
|
|
|
</article>
|
2022-01-04 23:27:05 +00:00
|
|
|
<% } =%>
|
2022-01-02 02:39:04 +00:00
|
|
|
</div>
|
2022-01-05 01:24:24 +00:00
|
|
|
<% if ($last_page && $last_page != 1) { =%>
|
2022-01-02 02:39:04 +00:00
|
|
|
<nav>
|
2022-01-04 23:27:05 +00:00
|
|
|
<%= pagination $this_page, $last_page, '?page={page}' %>
|
2022-01-02 02:39:04 +00:00
|
|
|
</nav>
|
2022-01-04 23:27:05 +00:00
|
|
|
<% } =%>
|