<%= link_to member.person.full_name, group_member_path(@group, member) %>
<% if member.is_leader %>
()
<% end %>
|
<% if @admin and current_person != member.person %>
<% if member.is_leader %>
<%= link_to t('groups.demote'), demote_group_member_path(@group, member), method: :post, data: { confirm: t(:areyousure)} %>
|
<% else %>
<%= link_to t('groups.promote'), promote_group_member_path(@group, member), method: :post, data: { confirm: t(:areyousure)} %>
|
<% end %>
<%= link_to t(:remove), group_member_path(@group, member), method: :delete, data: { confirm: t(:areyousure)} %>
|
<% else %>
| |
<% end %>
<% end %>