index.tpl 2.08 KB
Newer Older
Clare Lenihan's avatar
Clare Lenihan committed
1
2
3
4
{include file="header.tpl"}
{include file="sidebar.tpl"}

{include file="columnleftstart.tpl"}
5

6
<h2>{$heading|escape}</h2>
7
<div>
8
{include file="interaction:forum:breadcrumbs.tpl" breadcrumbs=$breadcrumbs}
Clare Lenihan's avatar
Clare Lenihan committed
9
{if $admin}
10
11
12
13
14
<div class="fr">
<span class="addicon">
<a href="{$WWWROOT}interaction/edit.php?group={$groupid|escape}&amp;plugin=forum">{str tag="newforum" section=interaction.forum}</a>
</span>
</div>
Clare Lenihan's avatar
Clare Lenihan committed
15
{/if}
16
17
18
19
20
21
<br>
{str tag="groupownerlist" section="interaction.forum"}
<a href="{$WWWROOT}user/view.php?id={$groupowner}" class="groupowner">
<img src="{$WWWROOT}thumb.php?type=profileicon&amp;maxsize=20&amp;id={$groupowner}" alt="">
{$groupowner|display_name|escape}</a>
</div>
Clare Lenihan's avatar
Clare Lenihan committed
22
{if $forums}
23
24
25
26
27
28
29
30
<table id="forumslist">
	<tr>
		<th>Forum Name</th>
		<th>Description</th>
		<th>Topics</th>
		<th></th>
		<th></th>
	</tr>
Clare Lenihan's avatar
Clare Lenihan committed
31
    {foreach from=$forums item=forum}
32
33
34
35
    <tr class="r{cycle values=0,1}">
        <td class="nowrap"><h4><a href="{$WWWROOT}interaction/forum/view.php?id={$forum->id|escape}">{$forum->title|escape}</a></h4>
        </td>
		<td>
36
        {$forum->description}
37
        {if $forum->moderators}
38
39
40
41
42
43
        {str tag="moderatorslist" section="interaction.forum"}
        {foreach from=$forum->moderators item=mod name=moderators}
            <a href="{$WWWROOT}user/view.php?id={$mod}" class="moderator">
            <img src="{$WWWROOT}thumb.php?type=profileicon&amp;maxsize=20&amp;id={$mod}" alt="">
            {$mod|display_name|escape}</a>{if !$smarty.foreach.moderators.last}, {/if}
        {/foreach}
44
        {/if}
45
46
		</td>
        <td align="center">{$forum->count}</td>
Clare Lenihan's avatar
Clare Lenihan committed
47
        {if $admin}
48
49
50
51
        <td class="nowrap">
        <a href="{$WWWROOT}interaction/edit.php?id={$forum->id|escape}&amp;returnto=index" id="btn-edit">{str tag=edit}</a>
        <a href="{$WWWROOT}interaction/delete.php?id={$forum->id|escape}&amp;returnto=index" id="btn-delete">{str tag=delete}</a>
        </td>
Clare Lenihan's avatar
Clare Lenihan committed
52
        {/if}
53
54
        <td>{$forum->subscribe}</td>
	</tr>
Clare Lenihan's avatar
Clare Lenihan committed
55
    {/foreach}
56
</table>
Clare Lenihan's avatar
Clare Lenihan committed
57
{else}
58
<div class="message">{str tag=noforums section=interaction.forum}</div>
Clare Lenihan's avatar
Clare Lenihan committed
59
60
61
{/if}
{include file="columnleftend.tpl"}
{include file="footer.tpl"}