Sha256: 83666ae12728dd2e5efb17de961ab3a12f04510dc67294036ee5bda35d8e2d23

Contents?: true

Size: 859 Bytes

Versions: 3

Compression:

Stored size: 859 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 %> class="disabled button <%= "default" unless _.indexOf(@selected, term) == -1 %>"><%= term %>( 0 )</a>
    <% end %>
  <% end %>
</section>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iugu-ux-0.9.1 vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-search-filter.jst.eco
iugu-ux-0.9.0 vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-search-filter.jst.eco
iugu-ux-0.8.9 vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-search-filter.jst.eco