Sha256: 0fe96da1bd6c6c710fad42bfd424048aa83cdda66817874d16f770b221ca5265

Contents?: true

Size: 392 Bytes

Versions: 5

Compression:

Stored size: 392 Bytes

Contents

<ul class="scopes">
  <% 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

5 entries across 5 versions & 1 rubygems

Version Path
trestle-0.9.4 app/views/trestle/resource/_scopes.html.erb
trestle-0.9.3 app/views/trestle/resource/_scopes.html.erb
trestle-0.9.2 app/views/trestle/resource/_scopes.html.erb
trestle-0.9.1 app/views/trestle/resource/_scopes.html.erb
trestle-0.9.0 app/views/trestle/resource/_scopes.html.erb