summaryrefslogtreecommitdiff
path: root/templates/board_table.tpl
blob: 49bae179acc66af105f88e77b4ee72cfb6a179eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{strip}
<table class="table data">
	<tr>
		<th class="boarddesc">{$smarty.const.BOARDS_PKG_DIR|ucfirst}</th>
		<th class="topiccount">Topics</th>
		<th class="postcount">Posts</th>
		<th class="lastpost">Last Post</th>
	<tr>
	{foreach item=board from=$boardsList}
		{if $board.title}
			{assign var=board_title value=$board.title|escape}
		{else}
			{assign var=board_title value=$board.content_id|escape}
			{assign var=board_title value="(Content $board_title)"}
		{/if}

		<tr class="{cycle values="even,odd"}{if $board.unreg > 0} unapproved{/if}">
			{* topic tracking icons *}
			<td>
				{if $board.track.on and $board.track.mod}
					{biticon ipackage="icons" iname="emblem-important"  ipackage="icons"  ipath="large" iexplain="New Posts" iforce="icon"}
				{else}
					{biticon ipackage="icons" iname="emblem-important"  ipackage="icons"  ipath="large" iexplain="New Posts" iforce="icon"}
				{/if} <strong><a href="{$board.url}" title="{$board_title}">{$board_title}</a></strong>
				<div class="desc">
					{$board.parsed_data}
				</div>
			</td>
			<td class="content-center">
				<strong class="count">{$board.topic_count}</strong>
			</td>
			<td class="content-center">
				<strong class="count">{$board.post_count}</strong>
			</td>
			<td>
				{if !empty($board.last)}
					<a href="{$board.last.url}" title="{$board.last.title|default:"Post..."}">{$board.last.title|default:"Post..."|truncate:30}</a>
					<br/> by {if $board.last.user_id < 0}{$board.last.l_anon_name|escape}{else}{displayname user_id=$board.last.user_id}{/if}
					<br/> <small>{if $board.last.last_modified > 0}{$board.last.last_modified|reltime}{/if}</small>
				{/if}
				{if $gBitUser->hasPermission('p_boards_update') or $gBitUser->hasPermission('p_boards_post_update')}
					{if $board.unreg > 0}<a class="highlight" href="{$board.url}" title="{$board.title|escape}">{$board.unreg}</a>{/if}
				{/if}
			</td>
		</tr>
	{/foreach}
</table>
{/strip}