Sha256: da2578f7b1e93ae30fedfc3acca9f9de072656b98d54a7cc32a282d5f731878b

Contents?: true

Size: 1.4 KB

Versions: 1

Compression:

Stored size: 1.4 KB

Contents

<% if ldap_enabled? %>
  <div class='list-group'>
    <%= link_to users_url(filters: filters.merge(provider: nil)),
      class: (filters[:provider].blank? ? 'list-group-item active': 'list-group-item')  do %>
      <span class='badge pull-right'><%= User.count %></span>
      <%= t '.provider.all' %>
    <% end %>

    <%= link_to users_url(filters: filters.merge(provider: 'local')),
      class: (filters[:provider] == 'local' ? 'list-group-item active': 'list-group-item') do %>
      <span class='badge pull-right'><%= User.where(provider: nil).count %></span>
      <%= t '.provider.local' %>
    <% end %>

    <%= link_to users_url(filters: filters.merge(provider: 'ldap')),
      class: (filters[:provider] == 'ldap' ? 'list-group-item active': 'list-group-item') do %>
      <span class='badge pull-right'><%= User.where(provider: :ldap).count %></span>
      <%= t '.provider.ldap' %>
    <% end %>
  </div>

<% end %>

<div class='list-group'>
  <%= link_to users_url(filters: filters.merge(activity: 'no_login')),
    class: (filters[:activity] == 'no_login' ? 'list-group-item active': 'list-group-item')  do %>
      <span class='badge pull-right'><%= User.where(sign_in_count: 0).count %></span>
      <%= t '.activity.no_login' %>
  <% end %>
</div>

<fieldset>
  <%= link_to nil, class: 'pull-right' do %>
    <%= icon(:remove) %>
    <strong><%= t 'chaltron.common.clear_filter' %></strong>
  <% end %>
</fieldset>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chaltron-0.1.0 app/views/chaltron/users/_side_filters.html.erb