<%
   community_and_member_params = {
     :id => @member.id,
     :community_id => @community.id
   }
%>

<%= render(:partial => "share/header_mobile", :locals => {:community => @community}) %>
<hr size="1" noshade>

<%= h(@community.member_name(@member)) %>さんの権限を変更、または退会処理を行います。<br />
<% if @community.sub_admin?(@member) %>
  現在<%= h @community.member_name(@member) %>さんは「副管理人」です。<br />
<% end %>
<hr size="1" noshade>

<% if @community.admin?(@current_user) %>
  <% if @community.general?(@member) %>
    <%= link_to("副管理人任命", confirm_before_assign_sub_admin_with_community_member_path(community_and_member_params)) %><br />
  <% elsif @community.sub_admin?(@member) %>
    <%= link_to("解任", confirm_before_remove_from_sub_admin_community_member_path(community_and_member_params)) %><br />
  <% end %>
  <%= link_to("管理権委譲", confirm_before_delegate_admin_to_community_member_path(community_and_member_params)) %><br />
  <%= link_to("強制退会", confirm_before_dismiss_community_member_path(community_and_member_params)) %><br />
<% elsif @community.sub_admin?(@current_user) %>
  <%= link_to("強制退会", confirm_before_dismiss_community_member_path(community_and_member_params)) %><br />
<% end %>
<%= link_to("メンバー一覧へ戻る", show_members_community_path(@community)) %><br />
<hr size="1" noshade>



<%= link_to("コミュニティトップへ戻る", community_path(@community)) %>
