Sha256: 651985df795530fa16069236d7269d052e35edda2a52f30b871ffc8917e5827c

Contents?: true

Size: 712 Bytes

Versions: 4

Compression:

Stored size: 712 Bytes

Contents

<%= content_tag(:dl, class: admin.scopes.classes) do %>
  <% admin.scopes.grouped.each do |group, scopes| %>
    <%= content_tag(:dt, group, class: ["scope-group", ("scope-group-empty" if group.blank?)]) if admin.scopes.grouped? %>

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trestle-0.9.8 app/views/trestle/resource/_scopes.html.erb
trestle-0.9.7 app/views/trestle/resource/_scopes.html.erb
trestle-0.9.6 app/views/trestle/resource/_scopes.html.erb
trestle-0.9.5 app/views/trestle/resource/_scopes.html.erb