{$ownerdata.username} {if $joined eq 'yes' } Leave Group {/if} {if $owner eq 'yes'} Edit Group {/if} {if $joined eq 'no' } Join Group {/if}