Sha256: 035b2bedf24691ad013e83ea117f390d13c6557a27ffec12e12d192ec2719754

Contents?: true

Size: 742 Bytes

Versions: 3

Compression:

Stored size: 742 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>
              <% if scope.count? %>(<%= number_with_delimiter(scope.count(admin.collection(params))) %>)<% end %>
            <% end %>
          </li>
        <% end %>
      </ul>
    </dd>
  <% end %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trestle-0.10.0 app/views/trestle/resource/_scopes.html.erb
trestle-0.10.0.pre2 app/views/trestle/resource/_scopes.html.erb
trestle-0.10.0.pre app/views/trestle/resource/_scopes.html.erb