guestbook-ng/templates/index.html.ep
swag 64067b22f9 Revert "Move <h3> for article heading to the inside of the <section> tag"
This reverts commit 14bc79d89d.

This was just to address some warning but now it's creating errors in
HTML validation so probably best to just ignore
2022-03-18 16:15:09 -04:00

28 lines
707 B
Plaintext

% layout 'default';
% title 'View';
<h2>Messages from the World Wide Web</h2>
<div class="articles">
<% for my $post (@$view_posts) { =%>
<article>
<h3><%= @$post[0] %></h3>
<section class="message field">
<blockquote><p><%= @$post[2] %></p></blockquote>
</section>
<section class="name field">
<figcaption>
- <%= @$post[1] %>
<% if (@$post[3]) { =%>
(<%= link_to Homepage => @$post[3] %>)
<% } =%>
</figcaption>
</section>
<span hidden>Message ID: <%= @$post[4] %></span>
</article>
<% } =%>
</div>
<% if ($last_page && $last_page != 1) { =%>
<nav>
<%= pagination $this_page, $last_page, '?page={page}' %>
</nav>
<% } =%>