% layout 'default', % title => $subf_title . ' - ' . $self->board_name; % my @thread_list = @{stash('thread_list')}; <% my $thread_item = begin %> % my $_thread_id = shift; my $_thread_title = shift;
<% end %> <%= $self->board_name %> » <%= $cat_title %> » <%= $subf_title %>

<% if (! @thread_list) { %> Oops! Looks like there's no threads here yet. Maybe you'd like to make one? <% } else { foreach my $thread_id (@thread_list) { %> <%= $thread_item->( $thread_id, $self->schema->resultset('Threads')-> title_from_id($thread_id)) %> <% }} %>