-set_meta_tags :title => [title_object(@platform), t('layout.platforms.members')] = render :partial => 'submenu' = render :partial => 'sidebar' = form_tag remove_members_platform_path(@platform), :id => 'members_form', :method => :post do %table.tablesorter{:cellpadding => "0", :cellspacing => "0"} %thead %tr - if can? :remove_members, @platform %th \  %th = t("layout.collaborators.members") - if can? :remove_member, @platform %th.buttons = t("layout.remove") %tbody - @members.select{|u| u != @platform.owner}.each_with_index do |user, num| %tr{:id => "admin-table-members-row#{num}", :class => cycle(:odd, :even)} - if can? :remove_members, @platform %td %span.niceCheck-main{:id => "niceCheckbox#{num}", :style => "background-position: 0px 0px; "} = check_box_tag "user_remove[#{user.id}][]" %td .img = image_tag avatar_url(user) .forimg= link_to "#{user.uname} (#{user.name})", user_path(user) - if can? :remove_member, @platform %td.buttons = link_to remove_member_platform_path(@platform, :member_id => user.id), :method => :delete, :confirm => t("layout.confirm") do %span.delete   - if can? :remove_memvers, @platforms = submit_tag t("layout.delete"), :class => 'button' .both - if can? :add_member, @platform .hr.top = form_tag add_member_platform_path(@platform) do .admin-search = autocomplete_field_tag 'member_id', params[:member_id], autocomplete_user_uname_users_path, :id_element => '#member_id_field' = hidden_field_tag 'member_id', nil, :id => 'member_id_field' = submit_tag t("layout.add"), :class => 'button' .both