Sha256: 30082dd13acb55179a15afe31ee2db3df8e1274c0f388577416ad52b99ec0fa5

Contents?: true

Size: 1.54 KB

Versions: 9

Compression:

Stored size: 1.54 KB

Contents

<label class="text-medium mb-s"><%= t(".jump_to") %></label>
<% if params.dig(:filter, :resource_type).present? %>
  <p class="text-secondary">
    <%= link_to main_search_path do %>
      <%= icon "caret-left", class: "icon--small" %>&nbsp;<%= t(".back") %>
    <% end %>
  </p>
<% end %>
<div class="card card--secondary">
  <div class="filters">
    <% @sections.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>
<div class="card card--secondary">
  <%= filter_form_for filter do |form| %>
    <%= scopes_picker_filter form, :decidim_scope_id %>
    <%= form.hidden_field :term %>
  <% end %>
</div>
<div class="row collapse order-by">
  <div class="text-uppercase text-right">
    <span class="order-by__tabs">
      <%= search_path_by_state_link(:past) %>
      <%= search_path_by_state_link(:future) %>
      <%= search_path_by_state_link(:active) %>
      <%= search_path_by_state_link(nil) %>
    </span>
  </div>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-core-0.19.1 app/views/decidim/searches/_filters.html.erb
decidim-core-0.18.1 app/views/decidim/searches/_filters.html.erb
decidim-core-0.19.0 app/views/decidim/searches/_filters.html.erb
decidim-core-0.17.2 app/views/decidim/searches/_filters.html.erb
decidim-core-0.18.0 app/views/decidim/searches/_filters.html.erb
decidim-core-0.17.1 app/views/decidim/searches/_filters.html.erb
decidim-core-0.16.1 app/views/decidim/searches/_filters.html.erb
decidim-core-0.17.0 app/views/decidim/searches/_filters.html.erb
decidim-core-0.16.0 app/views/decidim/searches/_filters.html.erb