CharmBoard/templates/subf.html.ep

25 lines
730 B
Plaintext
Raw Normal View History

2024-08-08 07:22:31 +00:00
% layout 'default',
% title => $subf_title . ' - ' . $c->board_name;
% my @thread_list = @{stash('thread_list')};
<% my $thread_item = begin %>
% my $_thread_id = shift; my $_thread_title = shift;
<div class=" thread-item thread-<%= $_thread_id %>">
2024-08-08 07:22:31 +00:00
<a href="/thread/<%= $_thread_id %>"></a>
</div>
<% end %>
<a href="/"><%= $c->board_name %></a> » <%= $cat_title %> »
2024-08-08 07:22:31 +00:00
<%= $subf_title %>
<br /><br />
<% if (! @thread_list) { %>
Oops! Looks like there's no threads here yet. Maybe you'd
2024-08-19 07:39:50 +00:00
like to <a href="<%= $subf_id %>/new/">make one?</a>
<% } else {
foreach my $thread_id (@thread_list) { %>
<%= $thread_item->(
2024-08-08 07:22:31 +00:00
$thread_id,
$c->schema->resultset('Threads')->
2024-08-08 07:22:31 +00:00
title_from_id($thread_id)) %>
<% }} %>