Fix the 'view posts' table

This commit is contained in:
swagg boi 2021-12-19 00:59:36 -05:00
parent d8ae4529e9
commit 8a4c5eab44

View file

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