Sha256: b3dde2da26243c69c76e30aa2b9f0bf2890e4683f599562f99a6e4c51df8ec89

Contents?: true

Size: 1.66 KB

Versions: 6

Compression:

Stored size: 1.66 KB

Contents

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

<% if @forced_past_meetings %>
  <div class="callout warning">
    <%= t ".upcoming_meetings_warning" %>
  </div>
<% elsif meetings.length == 0 %>
  <div class="callout warning">
    <%= t ".no_meetings_warning" %>
  </div>
<% end %>

<div class="row medium-up-2">
  <div class="column">
    <%= render partial: "decidim/shared/results_per_page" %>
  </div>
  <div class="column">
    <%= render partial: "decidim/meetings/calendar_modal", locals: {
      path: short_url(
        route_name: "calendar",
        params: { filter: params.fetch(:filter, {}).try(:to_unsafe_hash) }
      )
    } %>
  </div>
</div>

<div class="row small-up-1 medium-up-2 card-grid">
  <% meetings.each do |meeting| %>
    <%= card_for meeting %>
  <% end %>
</div>
<%= decidim_paginate meetings, order_start_time: params[:order_start_time], scope_id: params[:scope_id] %>

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

Version data entries

6 entries across 6 versions & 1 rubygems

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