groupuserstatus.tpl 1.55 KB
Newer Older
1
<ul class="groupuserstatus">
2
{if $group->membershiptype == 'member'}
3
4
5
	<li class="member">
            {str tag="youaregroup$group->role" section="group"}
        </li>
6
{if $group->canleave}
7
    <li><a href = "{$WWWROOT}group/leave.php?id={$group->id}&amp;returnto={$returnto}" class="btn-leavegroup">{str tag="leavegroup" section="group"}</a></li>
8
9
{/if}
{elseif $group->membershiptype == 'admin'}
10
11
	<li><a href="{$WWWROOT}group/edit.php?id={$group->id}" class="btn-edit">{str tag="edit"}</a></li>
	<li><a href="{$WWWROOT}group/delete.php?id={$group->id}" class="btn-del">{str tag="delete"}</a></li>
12
	
13
{if $group->jointype == 'request' && $group->requests}
14
	<li>
15
		<a href="{$WWWROOT}group/members.php?id={$group->id}&amp;membershiptype=request" class="btn-pending">{str tag="membershiprequests" section="group"} ({$group->requests})</a>
16
	</li>
17
{/if}
18
	
19
{elseif $group->membershiptype == 'invite'}
20
	<li>
21
{if $group->role}
22
23
24
		{assign var=grouptype value=$group->grouptype}
		{assign var=grouprole value=$group->role}
		{str tag="grouphaveinvitewithrole" section="group"}: {str tag="$grouprole" section="grouptype.$grouptype"}
25
{else}
26
		{str tag="grouphaveinvite" section="group"}
27
{/if}
28
	{$group->invite|safe}
29
30
	</li>
	
31
{elseif $group->membershiptype == 'request'}
32
33
	<li>{str tag="requestedtojoin" section="group"}</li>
	
34
{elseif $group->jointype == 'open'}
35
	{$group->groupjoin|safe}
36
	
37
{elseif $group->jointype == 'request'}
38
	<li><a href="{$WWWROOT}group/requestjoin.php?id={$group->id}&amp;returnto={$returnto}" class="btn-req">{str tag="requestjoingroup" section="group"}</a></li>
39
	
40
41
{/if}
</ul>