<% if @community.admin?(current_user) || @community.sub_admin?(current_user) %>
  <div style="margin: 5px; text-align: right;">
    [ <%= link_to("メンバー管理", community_members_path(:community_id => @community.id)) %> ]
  </div>
<% end %>

<center>
  <div style="border-bottom: 1px dotted gray; margin: 4px; padding: 3px; width: 620px; font-weight: bold;">
    <%= link_to(h(@community.name), community_path(@community)) %> の <%= link_to(h(@community_event.title), community_event_path(:id => @community_event, :community_id => @community.id)) %> のメンバーリスト
  </div>

  <% if @community_event.author?(current_user) %>
    <div style="margin-bottom: 5px;">
      [ <%= theme_image_tag("mail_outbox.gif", :border => 0, :style => "vertical-align: middle;") %>
      <%= link_to("イベント参加者へメッセージを送信", new_message_community_member_message_path(:id => @community.id, :event_id => @community_event.id)) %> ]
    </div>
  <% end %>

  <% display_round_box(:width => "650px") do %>
    <div class="content_box">
      <% display_collection_box(@members, :collection_name => "現在の参加者数", :per_pages => [5, 10, 20, 30, 50, 100], :checked_value => 30, :width => "640px", :class => "content_box_bg") do %>
        <table>
          <% @members.in_groups_of(6) do |members| %>
            <tr>
              <% members.each do |member| %>
                <td class="new_link" align="center" width="80" valign="top" style="padding: 5px 12px;">
                  <% if member %>
                    <%= display_member_on_table(member, @community, :width => 76, :enabled_friend_count => true, :admin => @community_event.author?(member)) %>
                  <% end %>
                </td>
              <% end %>
            </tr>
          <% end %>
        </table>
      <% end %>
    </div>
  <% end %>

  <div style="width: 650px; text-align: right;" >
    <%= theme_image_tag("community/comm_owner.gif", :size => "30x12") %>イベント作成者
  </div>
</center>
