Sha256: 07e07fd6a2c7493516e2c1a27d80549bde64191afa4a69c3dcbcf47928009724

Contents?: true

Size: 788 Bytes

Versions: 4

Compression:

Stored size: 788 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
iugu-ux-0.8.8 vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-search-filter.jst.eco
iugu-ux-0.8.7 vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-search-filter.jst.eco
iugu-ux-0.8.6 vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-search-filter.jst.eco
iugu-ux-0.8.5 vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-search-filter.jst.eco