2024-08-08 07:22:31 +00:00
|
|
|
% layout 'default',
|
|
|
|
% title => $self->board_name;
|
2023-05-15 23:50:44 +00:00
|
|
|
|
2023-05-17 04:18:25 +00:00
|
|
|
<% my $cat_header = begin %>
|
|
|
|
% my $_cat_id = shift; my $_name = shift;
|
|
|
|
<div class="category-header category-<%= $_cat_id %>">
|
2023-05-15 23:50:44 +00:00
|
|
|
<b><%= $_name %></b>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2023-05-17 04:18:25 +00:00
|
|
|
<% my $subf_item = begin %>
|
|
|
|
% my $_subf_id = shift; my $_cat_id = shift;
|
2023-05-15 23:50:44 +00:00
|
|
|
% my $_name = shift;
|
|
|
|
<div class="
|
2023-05-17 04:18:25 +00:00
|
|
|
subforum-item subforum-<%= $_subf_id %>
|
|
|
|
category-<%= $_cat_id %>
|
2024-08-21 04:06:06 +00:00
|
|
|
"><a href="/board/<%= $_subf_id %>"><%= $_name %></a></div>
|
2023-05-15 23:50:44 +00:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%
|
2023-05-17 04:18:25 +00:00
|
|
|
foreach my $category ($category_tree->getAllChildren) { %>
|
|
|
|
<%= $cat_header->(
|
2023-05-15 23:50:44 +00:00
|
|
|
$category->getNodeValue,
|
|
|
|
$self->schema->resultset('Categories')->
|
|
|
|
title_from_id($category->getNodeValue)) %>
|
|
|
|
<%
|
|
|
|
foreach my $subforum ($category->getAllChildren) { %>
|
2023-05-17 04:18:25 +00:00
|
|
|
<%= $subf_item->(
|
2023-05-15 23:50:44 +00:00
|
|
|
$subforum->getNodeValue,
|
|
|
|
$category->getNodeValue,
|
|
|
|
$self->schema->resultset('Subforums')->
|
|
|
|
title_from_id($subforum->getNodeValue)) %>
|
|
|
|
<% }} %>
|