Sha256: 38072c22646e2169f9474486d4ea9733672a96a9aa68b4c93edc939ac48008b7

Contents?: true

Size: 1.59 KB

Versions: 6

Compression:

Stored size: 1.59 KB

Contents

<% if params.dig("filter", "with_availability").present? && params["filter"]["with_availability"] == "withdrawn" %>
  <div class="callout warning">
    <%= t("decidim.proposals.proposals.index.text_banner",
          go_back_link: link_to(t("decidim.proposals.proposals.index.click_here"), proposals_path("filter[with_availability]" => nil)),
          ).html_safe %>
  </div>
<% end %>

<div class="collection-sort-controls row small-up-1 medium-up-3 card-grid">
  <div class="column">
    <%= order_selector available_orders, i18n_scope: "decidim.proposals.proposals.orders" %>
  </div>

  <div class="column">
    <%= render partial: "decidim/shared/results_per_page" %>
  </div>
</div>

<div class="row small-up-1 medium-up-2 card-grid">
  <%= render @proposals %>
</div>

<div class="row">
  <div class="columns mediumlarge-8 large-9">
    <% if @proposals.empty? %>
      <div class="callout secondary">
        <% if params[:filter].present? %>
          <p><%= t(".empty_filters") %></p>
        <% else %>
          <p><%= t(".empty") %></p>
        <% end %>
      </div>
    <% end %>
  </div>
</div>
<%= decidim_paginate @proposals %>

<div class="row">
  <div class="text-right">
    <% if params.dig("filter", "with_availability").present? && params["filter"]["with_availability"] == "withdrawn" %>
      <%= link_to t("decidim.proposals.proposals.index.see_all"), proposals_path("filter[with_availability]" => nil) %>
    <% else %>
      <%= link_to t("decidim.proposals.proposals.index.see_all_withdrawn"), proposals_path(filter: { with_availability: "withdrawn", state: [""] }) %>
    <% end %>
  </div>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-proposals-0.27.3 app/views/decidim/proposals/proposals/_proposals.html.erb
decidim-proposals-0.27.2 app/views/decidim/proposals/proposals/_proposals.html.erb
decidim-proposals-0.27.1 app/views/decidim/proposals/proposals/_proposals.html.erb
decidim-proposals-0.27.0 app/views/decidim/proposals/proposals/_proposals.html.erb
decidim-proposals-0.27.0.rc2 app/views/decidim/proposals/proposals/_proposals.html.erb
decidim-proposals-0.27.0.rc1 app/views/decidim/proposals/proposals/_proposals.html.erb