Fix the 'view posts' table
This commit is contained in:
parent
d8ae4529e9
commit
8a4c5eab44
|
@ -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) { %>
|
||||||
|
<tr>
|
||||||
<th>Date:</th>
|
<th>Date:</th>
|
||||||
<td><%= @$row[0] %></td>
|
<td><%= @$row[0] %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name:</th>
|
<th>Name:</th>
|
||||||
<td><%= @$row[1] %></td>
|
<td><%= @$row[1] %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Message:</th>
|
<th>Message:</th>
|
||||||
<td><%= @$row[2] %></td>
|
<td><%= @$row[2] %></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
<tr>
|
||||||
<br>
|
<th> </th>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
</table>
|
||||||
<%= pagination($this_page, $last_page, '?page={page}') %>
|
<%= pagination($this_page, $last_page, '?page={page}') %>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user