% if params.dig("filter", "with_availability").present? && params["filter"]["with_availability"] == "withdrawn" %>
<%= cell("decidim/announcement", 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, callout_class: "warning [&>a]:text-secondary") %>
<% end %>
<% if @proposals.empty? %>
<%= cell("decidim/announcement", params[:filter].present? ? t(".empty_filters") : t(".empty")) %>
<% else %>
<%= t("count", scope: "decidim.proposals.proposals.index", count: @proposals.total_count) %>
<%= order_selector available_orders, i18n_scope: "decidim.proposals.proposals.orders" %>
<%= render @proposals %>
<%= decidim_paginate @proposals %>
<% end %>
<% 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), class: "button button__sm button__text-secondary" %>
<% else %>
<%= link_to t("decidim.proposals.proposals.index.see_all_withdrawn"), proposals_path(filter: { with_availability: "withdrawn", with_any_state: [] }), class: "button button__sm button__text-secondary" %>
<% end %>