guestbook-ng/templates/index.html.ep

28 lines
698 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
<div class="articles">
2022-01-04 18:27:05 -05:00
<% for my $post (@$view_posts) { =%>
2022-01-01 21:39:04 -05:00
<article>
<h3><%= @$post[0] %></h3>
<div class="message field">
2022-01-04 18:27:05 -05:00
<blockquote><p><%= @$post[2] %></p></blockquote>
</div>
<div class="name field">
2022-04-01 16:26:40 -04:00
<p style="margin: 0 0 0 0;">
2022-01-04 18:27:05 -05:00
- <%= @$post[1] %>
<% if (@$post[3]) { =%>
(<%= link_to Homepage => @$post[3] %>)
2022-01-01 21:39:04 -05:00
<% } =%>
</p>
</div>
<span hidden>Message ID: <%= @$post[4] %></span>
2022-01-01 21:39:04 -05:00
</article>
2022-01-04 18:27:05 -05:00
<% } =%>
2022-01-01 21:39:04 -05:00
</div>
<% if ($last_page && $last_page != 1) { =%>
2022-01-01 21:39:04 -05:00
<nav>
2022-01-04 18:27:05 -05:00
<%= pagination $this_page, $last_page, '?page={page}' %>
2022-01-01 21:39:04 -05:00
</nav>
2022-01-04 18:27:05 -05:00
<% } =%>