Sha256: 8583c382f363b6ec05dc17eb06bcbb46658ed9e4747b3ab661543dd665df9f79

Contents?: true

Size: 1.67 KB

Versions: 6

Compression:

Stored size: 1.67 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], with_any_scope: params[:with_any_scope] %>

<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.9 app/views/decidim/meetings/meetings/_meetings.html.erb
decidim-meetings-0.27.8 app/views/decidim/meetings/meetings/_meetings.html.erb
decidim-meetings-0.27.7 app/views/decidim/meetings/meetings/_meetings.html.erb
decidim-meetings-0.27.6 app/views/decidim/meetings/meetings/_meetings.html.erb
decidim-meetings-0.27.5 app/views/decidim/meetings/meetings/_meetings.html.erb
decidim-meetings-0.27.4 app/views/decidim/meetings/meetings/_meetings.html.erb