diff --git a/templates/list_page.html.ep b/templates/list_page.html.ep index f98230f..8da123b 100644 --- a/templates/list_page.html.ep +++ b/templates/list_page.html.ep @@ -2,17 +2,18 @@ % title 'Threads List';

<%= title %>

- <% for my $thread (@$threads) { =%> + <% for my $thread (@{$threads}) { =%>
<%= link_to "Thread #$thread->{'id'}", thread_page => {thread_id => $thread->{'id'}} %> -

<%= %$thread{'title'} %>

-

<%= %$thread{'date'} %>

-
<%= %$thread{'author'} %>
-

<%= %$thread{'body'} %>

+

<%= $thread->{'title'} %>

+

<%= $thread->{'date'} %>

+
<%= $thread->{'author'} %>
+

<%= $thread->{'body'} %>

<%= link_to Remark => thread_id => {thread_id => $thread->{'id'}} %> +
<% } =%>