group.tpl 2.45 KB
Newer Older
1
<h3><a href="{$WWWROOT}group/view.php?id={$group->id|escape}">{$group->name|escape}</a></h3>
2
<h6>{foreach name=admins from=$group->admins item=id}<a href="{$WWWROOT}user/view.php?id={$id|escape}">{$id|display_name|escape}</a>{if !$smarty.foreach.admins.last}, {/if}{/foreach}</h6>
3
{$group->description}
4
<ul>
5
6
7
8
9
<li id="groupmembers">{str tag="memberslist" section="group"}
{if $group->member1}<a href="{$WWWROOT}user/view.php?id={$group->member1|escape}" class="links-members">{$group->member1|display_name|escape}</a>{/if}
{if $group->member2}, <a href="{$WWWROOT}user/view.php?id={$group->member2|escape}" class="links-members">{$group->member2|display_name|escape}</a>{/if}
{if $group->member3}, <a href="{$WWWROOT}user/view.php?id={$group->member3|escape}" class="links-members">{$group->member3|display_name|escape}</a>{/if}
{if $group->membercount > 3}<a href="{$WWWROOT}group/view.php?id={$group->id|escape}&amp;#members" class="links-members">...</a>{/if}
10
11
</li>

12
{if $group->membershiptype == 'member'}
Nigel McNie's avatar
Nigel McNie committed
13
<li>{str tag="youaregroupmember" section="group"}</li>
14
{if $group->canleave}
15
    <li><a href = "{$WWWROOT}group/leave.php?id={$group->id|escape}&amp;returnto={$returnto}" id="btn-leavegroup">{str tag="leavegroup" section="group"}</a></li>
16
17
{/if}

18
{elseif $group->membershiptype == 'admin'}
19
20
<li><a href="{$WWWROOT}group/edit.php?id={$group->id|escape}" id="btn-edit">{str tag="edit"}</a></li>
<li><a href="{$WWWROOT}group/delete.php?id={$group->id|escape}" id="btn-delete">{str tag="delete"}</a></li>
21
{if $group->jointype == 'request' && $group->requests}
22
    <li>
23
    {if $group->requests == 1}
24
        <a href="{$WWWROOT}group/view.php?id={$group->id|escape}&amp;pending={$group->requests|escape}#members" id="btn-requests">{str tag="thereispendingrequest" section="group"}</a>
25
    {else}
26
        <a href="{$WWWROOT}group/view.php?id={$group->id|escape}&amp;pending={$group->requests[0]|escape}#members" id="btn-requests">{str tag="therearependingrequests" args=$group->requests}</a>
27
    {/if}
28
    </li>
29
{/if}
30

31
{elseif $group->membershiptype == 'invite'}
32
<li>
Nigel McNie's avatar
Nigel McNie committed
33
{str tag="grouphaveinvite" section="group"}
34
35
36
{$group->invite}
</li>

37
{elseif $group->membershiptype == 'request'}
Nigel McNie's avatar
Nigel McNie committed
38
<li>{str tag="requestedtojoin" section="group"}</li>
39

40
41
{elseif $group->jointype == 'open'}
{$group->groupjoin}
42

43
{elseif $group->jointype == 'request'}
44
<li><a href="{$WWWROOT}group/requestjoin.php?id={$group->id|escape}&amp;returnto={$returnto}" id="btn-requests">{str tag="requestjoingroup" section="group"}</a></li>
45

46
{/if}
Nigel McNie's avatar
Nigel McNie committed
47
</ul>