guestbook-ng/templates/index.html.ep

25 lines
594 B
Plaintext
Raw Normal View History

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