Sha256: 94a07516c6377f5541e1f6e31180895152c8ded460a1490827d8af2f806c3658

Contents?: true

Size: 685 Bytes

Versions: 16

Compression:

Stored size: 685 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(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(params.merge(state: nil, page: nil, view: nil, only_path: true)) -%></li>
    <%- end -%>
  </ul>
<%- end -%>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
enju_circulation-0.1.2 app/views/reserves/_state_facet.html.erb
enju_circulation-0.1.1 app/views/reserves/_state_facet.html.erb
enju_circulation-0.1.0 app/views/reserves/_state_facet.html.erb
enju_circulation-0.1.0.pre49 app/views/reserves/_state_facet.html.erb
enju_circulation-0.1.0.pre48 app/views/reserves/_state_facet.html.erb
enju_circulation-0.1.0.pre47 app/views/reserves/_state_facet.html.erb
enju_circulation-0.1.0.pre46 app/views/reserves/_state_facet.html.erb
enju_circulation-0.1.0.pre45 app/views/reserves/_state_facet.html.erb
enju_circulation-0.1.0.pre44 app/views/reserves/_state_facet.html.erb
enju_circulation-0.1.0.pre43 app/views/reserves/_state_facet.html.erb
enju_circulation-0.1.0.pre42 app/views/reserves/_state_facet.html.erb
enju_circulation-0.1.0.pre41 app/views/reserves/_state_facet.html.erb
enju_circulation-0.1.0.pre40 app/views/reserves/_state_facet.html.erb
enju_circulation-0.1.0.pre39 app/views/reserves/_state_facet.html.erb
enju_circulation-0.1.0.pre38 app/views/reserves/_state_facet.html.erb
enju_circulation-0.1.0.pre37 app/views/reserves/_state_facet.html.erb