Sha256: c5ed2c62029aa38b73f89eb6790c94ad9d63f5837ba681400565c432b8fa15e6
Contents?: true
Size: 728 Bytes
Versions: 3
Compression:
Stored size: 728 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><%= t '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
3 entries across 3 versions & 1 rubygems