Sha256: 9f7457e9099d34ffa57c8f62b31b78441f340a6b398934853587d008b454e977

Contents?: true

Size: 885 Bytes

Versions: 2

Compression:

Stored size: 885 Bytes

Contents

<section style="background:#FFF;padding-top:5px;padding-bottom:5px">
  <% if @collection.facets: %>
    <% facets = _.pick(@collection.facets, @filterName) %>
  <% end %>
  <% facets = [] unless facets %>
  <% printed = [] %>
  <% for facet in _.pairs(facets): %>
    <% for term in facet[1].terms: %>
      <% printed.push(term.term.toString()) %>
      <a href="#" data-filter=<%= term.term %> data-action="search-filter-button" class="button <%= "default" unless _.indexOf(@selected, term.term.toString()) == -1 %>"><%= term.term.toString() %>( <%= term.count %> )</a>
    <% end %>
  <% end %>
  <% for term in @fixedFilters: %>
    <% if _.indexOf(printed, term) == -1: %>
      <a href="#" data-filter=<%= term %> data-action="search-filter-button" class="button <%= "default" unless _.indexOf(@selected, term) == -1 %>"><%= term %>( 0 )</a>
    <% end %>
  <% end %>
</section>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iugu-ux-0.9.3 vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-search-filter.jst.eco
iugu-ux-0.9.2 vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-search-filter.jst.eco