Post by Nscalerr 🐺 on May 29, 2017 20:39:01 GMT -8
Think I might be getting somewhere at long last. What I really want is for it to look like is a normal board on the home page of the forum. What do you think Tumbleweed ??
{foreach $[board]}
{if $[board.sub_board_list] && $[route.name] == 'home'}
<table class="list" role="grid" style="text-align: center;">
<tr>
<td style="border-top: 1px solid #e5d8c5; font-size: 8pt;">
<table style="width: 100%;">
<tr>
<td>
<div class="content" style="border: 0px; font-size: 8pt;">
<table style="width: 100%; border-left: 1px solid #e5d8c5; border-top: 1px solid #e5d8c5; border-right: 1px solid #e5d8c5;">
<tr>
<td class="icon" style="border-right: 1px solid #e5d8c5;"> </td>
<td style="width: 50%; border-right: 1px solid #e5d8c5; padding-left: 5px;" align="left">Sub-Boards</td>
<td class="threads" style="border-right: 1px solid #e5d8c5;">Threads</td>
<td class="posts" style="border-right: 1px solid #e5d8c5;">Posts</td>
<td class="date" style="padding-left: 5px;" align="left">Latest Post</td>
</tr>
</table>
{foreach $[board.sub_board]}
<table style="width: 100%; border: 1px solid #e5d8c5;">
<tr>
<td class="icon" style="border-right: 1px solid #e5d8c5;">
$[board.sub_board.icon]
</td>
<td style="width: 50%; border-right: 1px solid #e5d8c5; padding-left: 5px;" align="left">
<a href="$[board.sub_board.href]">$[board.sub_board.name]</a><br />
$[board.sub_board.description]
</td>
<td class="threads" style="border-right: 1px solid #e5d8c5;">
$[board.sub_board.threads]
</td>
<td class="posts" style="border-right: 1px solid #e5d8c5;">
$[board.sub_board.posts]
</td>
<td class="date" style="padding-left: 5px;" align="left">$[board.sub_board.last_thread.last_post.thread]<br />
$[board.sub_board.last_thread.created_by] $[board.sub_board.last_thread.created_on]
</td>
</tr>
</table>
{/foreach}
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
{/foreach}