Sha256: 355417ddf210a28b0d21c93e684b32f3a0e98e5a021145f4f4b9f1a79c20b2ca

Contents?: true

Size: 703 Bytes

Versions: 13

Compression:

Stored size: 703 Bytes

Contents

<h4><%= t('activerecord.attributes.reserve.state') -%></h4>
<%- unless @state_facet.blank? -%>
  <ul>
    <% @state_facet.each do |state| %>
      <li>
        <% if state.value == params[:state].to_s.downcase %><strong><% end %>
        <%= link_to "#{i18n_state(state.value)} (#{state.count})", url_for(filtered_params.merge(state: state.value, page: nil, view: nil, only_path: true)) %>
        <% if state.value == params[:state].to_s.downcase %></strong><% end %>
      </li>
    <% end %>
    <%- if params[:state] -%>
      <li><%= link_to t('page.remove_this_facet'), url_for(filtered_params.merge(state: nil, page: nil, view: nil, only_path: true)) -%></li>
    <%- end -%>
  </ul>
<%- end -%>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
enju_circulation-0.3.11 app/views/reserves/_state_facet.html.erb
enju_circulation-0.3.10 app/views/reserves/_state_facet.html.erb
enju_circulation-0.3.9 app/views/reserves/_state_facet.html.erb
enju_circulation-0.4.0.rc.1 app/views/reserves/_state_facet.html.erb
enju_circulation-0.3.8 app/views/reserves/_state_facet.html.erb
enju_circulation-0.3.7 app/views/reserves/_state_facet.html.erb
enju_circulation-0.4.0.beta.4 app/views/reserves/_state_facet.html.erb
enju_circulation-0.4.0.beta.3 app/views/reserves/_state_facet.html.erb
enju_circulation-0.3.6 app/views/reserves/_state_facet.html.erb
enju_circulation-0.4.0.beta.2 app/views/reserves/_state_facet.html.erb
enju_circulation-0.4.0.beta.1 app/views/reserves/_state_facet.html.erb
enju_circulation-0.3.5 app/views/reserves/_state_facet.html.erb
enju_circulation-0.3.4 app/views/reserves/_state_facet.html.erb