Sha256: 9b5e4fd2522730aaf31960baba35fbcf20a956a1fa097bc9d5930a35d52a600a

Contents?: true

Size: 706 Bytes

Versions: 9

Compression:

Stored size: 706 Bytes

Contents

<% resources = @sections.select { |type, _results| types.include?(type) } %>
<div class="card">
  <div>
    <% 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><%= searchable_resource_human_name(type) %></strong>
          <span>&nbsp;<%= results[:count] %></span>
        <% end %>
      <% else %>
        <div>
          <strong><%= searchable_resource_human_name(type) %></strong>
          <span>&nbsp;<%= results[:count] %></span>
        </div>
      <% end %>
    </div>
    <% end %>
  </div>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-core-0.30.0.rc2 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.30.0.rc1 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.29.2 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.29.1 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.29.0 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.29.0.rc4 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.29.0.rc3 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.29.0.rc2 app/views/decidim/searches/_resources_filter_block.html.erb
decidim-core-0.29.0.rc1 app/views/decidim/searches/_resources_filter_block.html.erb