<% page_title "Administration / User Browser" %> <% @toolbar_title = "List Users" %> <% content_for :toolbar_links do %> <%= link_to(span_tag("ADD USER"), new_cms_user_path, :id => "add_user_button", :class => "button") %> <% end %> <% content_for :functions do %> <%= render(:partial => "toolbar") %> <% end %>
<% @users.each do |user|%> <% end %>
Name
Email
Groups
Expiration
Activation
<%= link_to "#{user.first_name} #{user.last_name}", edit_cms_user_path(user) %>
<%= link_to user.email, "mailto:#{user.email}" %>
<% user.groups.all(:order => "groups.name").each do |g| %> <%= g.name %>
<% end %>
<%= user.expires_at ? format_date(user.expires_at) : "Never" %>
<% unless user.expired? %> Active <%= link_to("Disable", [:disable, :cms, user], :class => "http_put sm_button") if @users.size > 1 %> <% else %> Inactive <%= link_to("Enable", [:enable, :cms, user], :class => "http_put sm_button") %> <% end %>
<% if @users.size == 0 && params[:key_word]%> <% elsif @users.total_pages > 1 %> <%= render_pagination @users, :users %> <% end %>