cirandas.net

ref: master

app/views/profile_members/_members_list.html.erb


<% members = @data ? @data[:members] : profile.members_by('name') %>
<% collection = @collection == :profile_admins ? profile.admins : members %>
<% title = @title ? @title : _('Current members') %>
<% remove_action = @remove_action ? @remove_action : {:action => 'unassociate'} %>
<%= javascript_include_tag params[:controller] %>

<%= title %>

<% collection.each do |m| %> <% end %>
<%= check_box_tag 'checkbox-all', 1, false, :onClick => "toggle(this)" %> <%= _('Member') %> <%= _('Actions') %>
<%= labelled_check_box('', 'members_filtered[]', m.id.to_s, false, :id => 'checkbox-'+m.identifier) %> <%= link_to_profile m.short_name, m.identifier, :title => m.name %>
<%= button_without_text :edit, _('Edit'), :action => 'change_role', :id => m %> <%= button_to_remote_without_text(:remove, _('Remove'), :update => 'members-list', :loading => "jQuery('#members-list').addClass('loading')", :success => "jQuery('#tr-#{m.identifier}').show()", :complete => "jQuery('#members-list').removeClass('loading')", :url => { :id => m }.merge(remove_action)) if m != user %>
<% if collection.empty? %>

<%= _('No members found to: %s') % profile.name %>

<% end %>