Sha256: 1da5cd2c3230a744e2e882844e4afc16cc282da7c2850b6ca616398fa3d02b3a

Contents?: true

Size: 844 Bytes

Versions: 49

Compression:

Stored size: 844 Bytes

Contents

<% resources= @sections.select {|type, results| types.include?(type)} %>
<div class="card card--secondary">
  <div class="filters">
    <% resources.each do |type, results| %>
    <div class="filters__section--general<%= " no-results" if results[:count].zero? %>">
      <% if results[:count].positive? %>
        <%= link_to search_path_by_resource_type(type), class: "flex--sbc" do %>
          <strong class="section-title"><%= searchable_resource_human_name(type) %></strong>
          <span class="muted">&nbsp;<%= results[:count] %></span>
        <% end %>
      <% else %>
        <div class="flex--sbc">
          <strong class="section-title"><%= searchable_resource_human_name(type) %></strong>
          <span class="muted">&nbsp;<%= results[:count] %></span>
        </div>
      <% end %>
    </div>
    <% end %>
  </div>
</div>

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
decidim-core-0.27.9 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.27.8 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.27.7 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.27.6 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.26.10 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.26.9 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.27.5 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.26.8 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.27.4 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.27.3 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.26.7 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.26.5 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.27.2 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.27.1 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.26.4 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.27.0 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.26.3 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.27.0.rc2 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.27.0.rc1 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.26.2 app/views/decidim/searches/_resources_filter_block.html.erb