guestbook-ng/templates/index.html.ep
2021-12-19 17:43:58 -05:00

25 lines
411 B
Plaintext

% layout 'default';
% title 'View';
<h2>Messages from the World Wide Web</h2>
<table>
<% for my $row (@$view_posts) { %>
<tr>
<th>Date:</th>
<td><%= @$row[0] %></td>
</tr>
<tr>
<th>Name:</th>
<td><%= @$row[1] %></td>
</tr>
<tr>
<th>Message:</th>
<td><%= @$row[2] %></td>
</tr>
<tr>
<th>&nbsp;</th>
<td>&nbsp;</td>
</tr>
<% } %>
</table>
<%= pagination($this_page, $last_page, '?page={page}') %>