Sha256: ec285728fd2214368cdb500b4993e869079abb13400e5c163565e7aa8c3f1c54
Contents?: true
Size: 1.14 KB
Versions: 5
Compression:
Stored size: 1.14 KB
Contents
<% 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 tal <%= "active" unless _.indexOf(@selected, term.term.toString()) == -1 %>"> <% if @translateTerms: %> <%= _t("#{@translationPrefix}.#{term.term.toString()}") %> <% else: %> <%= term.term.toString() %> <% end %> <div class="badge right"> <%= term.count %> </div> </a> <% end %> <% end %> <% for term in @fixedFilters: %> <% if _.indexOf(printed, term) == -1: %> <a href="#" data-filter=<%= term %> data-action="search-filter-button" class="button tal <%= "active" unless _.indexOf(@selected, term) == -1 %>"> <% if @translateTerms: %> <%= _t("#{@translationPrefix}.#{term}") %> <% else: %> <%= term %> <% end %> <div class="badge right"> 0 </div> </a> <% end %> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems