Sha256: 01e37c0b145d4bf39083e3ce56e446146feaf0a443b5d49ca7bbfac7fcdf81ce

Contents?: true

Size: 413 Bytes

Versions: 10

Compression:

Stored size: 413 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.initialize_collection(params))) %>)
      <% end %>
    <% end %>
  <% end %>
</ul>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
trestle-0.8.10 app/views/trestle/resource/_scopes.html.erb
trestle-0.8.9 app/views/trestle/resource/_scopes.html.erb
trestle-0.8.8 app/views/trestle/resource/_scopes.html.erb
trestle-0.8.7 app/views/trestle/resource/_scopes.html.erb
trestle-0.8.6 app/views/trestle/resource/_scopes.html.erb
trestle-0.8.5 app/views/trestle/resource/_scopes.html.erb
trestle-0.8.4 app/views/trestle/resource/_scopes.html.erb
trestle-0.8.3 app/views/trestle/resource/_scopes.html.erb
trestle-0.8.2 app/views/trestle/resource/_scopes.html.erb
trestle-0.8.0 app/views/trestle/resource/_scopes.html.erb