Sha256: 8264a8b783ca0464606fb63c5397b848704b69ba3884d137c2190920b2378718
Contents?: true
Size: 933 Bytes
Versions: 2
Compression:
Stored size: 933 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 %>"><%= _t('invoice_status.' + 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 %>"><%= _t('invoice_status.' + term) %>( 0 )</a> <% end %> <% end %> </section>
Version data entries
2 entries across 2 versions & 1 rubygems