Sha256: 3c736bd55551a4db8f48326720c0204daf8a9de79eb2386ddfad555b5bc8f40c

Contents?: true

Size: 810 Bytes

Versions: 8

Compression:

Stored size: 810 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) do %>
          <strong class="section-title"><%= searchable_resource_human_name(type) %></strong>
          <span class="muted">&nbsp;<%= results[:count] %></span>
        <% end %>
      <% else %>
        <div>
          <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

8 entries across 8 versions & 1 rubygems

Version Path
decidim-core-0.28.5 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.28.4 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.28.3 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.28.2 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.28.1 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.28.0 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.28.0.rc5 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.28.0.rc4 app/views/decidim/searches/_resources_filter_block.html.erb