Sha256: 6bf73c8d2041b03d4bd57b894a87815e340b00220220d2eda998f8a628cf6c62

Contents?: true

Size: 590 Bytes

Versions: 3

Compression:

Stored size: 590 Bytes

Contents

<%# there has got to be a hipster ruby way to do this better %>
<% if params[:f] %>
  <% params[:f].each do |field,v| %>
    <% v.each do |selected_value| %>
      <% link_options = remove_facet_params(field, selected_value, params).merge!Hash["controller" => "catalog", :action=> "index"] %>
      <div class="alert alert-warning">
        <%= link_to 'X', url_for(link_options), {:class=>'close', :'data-dismiss' => "alert" } %>
        <i class="icon-ok icon-large"></i> <strong><%= facet_display_value(field, selected_value) %></strong>
      </div>
    <% end %>
  <% end %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
curate-0.6.6 app/views/catalog/_facet_selected.html.erb
curate-0.6.5 app/views/catalog/_facet_selected.html.erb
curate-0.6.4 app/views/catalog/_facet_selected.html.erb