Sha256: ff8da843608dd040ec398c7fe1e85e49341e6c8e702e592fa0807965c87f9707
Contents?: true
Size: 729 Bytes
Versions: 10
Compression:
Stored size: 729 Bytes
Contents
<% filters = current_model_decorator.filters filter = filter_name_by params[:filter], filters %> <nav class="filters"> <% if filters.present? %> <a id="all_filters" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> <%= filter_label(filter, filters) || all_label %> </a> <ul class="dropdown-menu" aria-labelledby="all_filters"> <li><em><%= wt 'filters.title' %></em></li> <% filters.keys.unshift(:all).each do |filter_name| %> <%= content_tag :li, filter_link(current_model_class, filter_name, filters: filters), { class: filter.to_s == filter_name.to_s && 'filters--current' } %> <% end %> </ul> <% else %> <%= all_label %> <% end %> </nav>
Version data entries
10 entries across 10 versions & 1 rubygems