Sha256: 28a858816eff1e7dda93c391aec3baa7bd05029ef0970ce13ab34470a5039a62

Contents?: true

Size: 873 Bytes

Versions: 19

Compression:

Stored size: 873 Bytes

Contents

<h4><%= t('activerecord.models.classification') -%></h4>
<%- unless @classification_facet.blank? -%>
  <ul>
    <% @classification_facet.each do |category| %>
      <li>
        <% if category.value == params[:classification].to_s.downcase %><strong><% end %>
        <%= link_to "#{t('classification.category', number: category.value)} #{category_name(category.value)} (#{category.count})", url_for(params.merge(classification: category.value, page: nil, view: nil, only_path: true)) %>
        <% if category.value == params[:classification].to_s.downcase %></strong><% end %>
      </li>
    <% end %>
    <%- if params[:classification] -%>
      <li><%= link_to t('page.remove_this_facet'), url_for(params.merge(classification: nil, page: nil, view: nil, only_path: true)) -%></li>
    <%- end -%>
  </ul>
<%- else -%>
  <p><%= t('page.no_subject') -%></p>
<%- end -%>

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
enju_biblio-0.1.3 app/views/manifestations/_classification_facet.html.erb
enju_flower-0.1.1 app/views/manifestations/_classification_facet.html.erb
enju_biblio-0.1.2 app/views/manifestations/_classification_facet.html.erb
enju_flower-0.1.0 app/views/manifestations/_classification_facet.html.erb
enju_biblio-0.1.1 app/views/manifestations/_classification_facet.html.erb
enju_biblio-0.1.0 app/views/manifestations/_classification_facet.html.erb
enju_flower-0.1.0.pre24 app/views/manifestations/_classification_facet.html.erb
enju_biblio-0.1.0.pre71 app/views/manifestations/_classification_facet.html.erb
enju_biblio-0.1.0.pre70 app/views/manifestations/_classification_facet.html.erb
enju_biblio-0.1.0.pre69 app/views/manifestations/_classification_facet.html.erb
enju_flower-0.1.0.pre23 app/views/manifestations/_classification_facet.html.erb
enju_biblio-0.1.0.pre68 app/views/manifestations/_classification_facet.html.erb
enju_biblio-0.1.0.pre67 app/views/manifestations/_classification_facet.html.erb
enju_flower-0.1.0.pre22 app/views/manifestations/_classification_facet.html.erb
enju_flower-0.1.0.pre21 app/views/manifestations/_classification_facet.html.erb
enju_flower-0.1.0.pre20 app/views/manifestations/_classification_facet.html.erb
enju_flower-0.1.0.pre19 app/views/manifestations/_classification_facet.html.erb
enju_flower-0.1.0.pre18 app/views/manifestations/_classification_facet.html.erb
enju_flower-0.1.0.pre17 app/views/manifestations/_classification_facet.html.erb