Members of <%= @group.name %>

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

<%= link_to t('groups.member.add'), new_group_member_path(@group) %> | <%= link_to t('groups.member.invite'), group_invite_path(@group) %>