mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
groups: can't ban self. rename to "boot" (since i ahven't implemented full-ban)
This commit is contained in:
parent
a7c8c843cd
commit
d944dc1687
1 changed files with 9 additions and 9 deletions
|
|
@ -222,16 +222,16 @@
|
|||
<table class="table table-striped">
|
||||
{#each @group.members as :memberId}
|
||||
<tr><td>
|
||||
<a data-toggle='modal' data-target="#avatar-modal-{{:memberId}}">
|
||||
<!-- allow leaders to ban members -->
|
||||
{{#if equal(@group.leader,_user.id)}}
|
||||
{{#with @group.members[$index]}}
|
||||
<a x-bind=click:removeAt data-refresh=true data-confirm='Ban this member?'>
|
||||
<i class=icon-ban-circle rel=tooltip title="Ban Member"></i>
|
||||
</a>
|
||||
{{/}}
|
||||
|
||||
<!-- allow leaders to ban members -->
|
||||
{{#if and(equal(@group.leader,_user.id),not(equal(_user.id,:memberId)))}}
|
||||
{{#with @group.members[$index]}}
|
||||
<a x-bind=click:removeAt data-refresh=true data-confirm='Boot this member?'>
|
||||
<i class=icon-ban-circle rel=tooltip title="Boot Member"></i>
|
||||
</a>
|
||||
{{/}}
|
||||
|
||||
{{/}}
|
||||
<a data-toggle='modal' data-target="#avatar-modal-{{:memberId}}">
|
||||
{{username(_members[:memberId].auth, _members[:memberId].profile.name)}}
|
||||
</a>
|
||||
</td>
|
||||
|
|
|
|||
Loading…
Reference in a new issue