Sha256: cdde3476690c98146a94160a259bc948172c5c53179a15863945eb08d166a81c

Contents?: true

Size: 402 Bytes

Versions: 3

Compression:

Stored size: 402 Bytes

Contents

<ul class="scopes pull-left">
  <% admin.scopes.each do |name, scope| %>
    <%= content_tag(:li, class: ("active" if scope.active?(params))) do %>
      <%= link_to persistent_params.merge(scope: (name unless scope.active?(params))) do %>
        <strong><%= scope.label %></strong> (<%= number_with_delimiter(scope.count(admin.collection(params))) %>)
      <% end %>
    <% end %>
  <% end %>
</ul>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trestle-0.8.13 app/views/trestle/resource/_scopes.html.erb
trestle-0.8.12 app/views/trestle/resource/_scopes.html.erb
trestle-0.8.11 app/views/trestle/resource/_scopes.html.erb