Commit 5aadb476 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Some template fixes for rendering groups in search results, based on changes to mygroups.php

parent 09b228c6
...@@ -9,13 +9,13 @@ ...@@ -9,13 +9,13 @@
{if $group->membercount > 3}<a href="{$WWWROOT}group/view.php?id={$group->id|escape}&amp;#members" class="links-members">...</a>{/if} {if $group->membercount > 3}<a href="{$WWWROOT}group/view.php?id={$group->id|escape}&amp;#members" class="links-members">...</a>{/if}
</li> </li>
{if $group->type == 'member'} {if $group->membershiptype == 'member'}
<li>{str tag="youaregroupmember" section="group"}</li> <li>{str tag="youaregroupmember" section="group"}</li>
{if $group->canleave} {if $group->canleave}
<li><a href = "{$WWWROOT}group/leave.php?id={$group->id|escape}&amp;returnto={$returnto}" id="btn-leavegroup">{str tag="leavegroup" section="group"}</a></li> <li><a href = "{$WWWROOT}group/leave.php?id={$group->id|escape}&amp;returnto={$returnto}" id="btn-leavegroup">{str tag="leavegroup" section="group"}</a></li>
{/if} {/if}
{elseif $group->type == 'owner'} {elseif $group->membershiptype == 'admin'}
<li><a href="{$WWWROOT}group/edit.php?id={$group->id|escape}" id="btn-edit">{str tag="edit"}</a></li> <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> <li><a href="{$WWWROOT}group/delete.php?id={$group->id|escape}" id="btn-delete">{str tag="delete"}</a></li>
{if $group->jointype == 'request' && $group->requests} {if $group->jointype == 'request' && $group->requests}
...@@ -28,13 +28,13 @@ ...@@ -28,13 +28,13 @@
</li> </li>
{/if} {/if}
{elseif $group->type == 'invite'} {elseif $group->membershiptype == 'invite'}
<li> <li>
{str tag="grouphaveinvite" section="group"} {str tag="grouphaveinvite" section="group"}
{$group->invite} {$group->invite}
</li> </li>
{elseif $group->type == 'request'} {elseif $group->membershiptype == 'request'}
<li>{str tag="requestedtojoin" section="group"}</li> <li>{str tag="requestedtojoin" section="group"}</li>
{elseif $group->jointype == 'open'} {elseif $group->jointype == 'open'}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment