% if upcoming_meetings.any? %>
<% upcoming_meetings.each do |meeting| %>
<%= card_for meeting, size: :list_item %>
<% end %>
<%= link_to(
t("decidim.participatory_spaces.highlighted_meetings.see_all", count: meetings_count),
main_component_path(model),
class: "button button--sc light secondary button--right"
) %>
<% elsif past_meetings.any? %>
<% past_meetings.each do |meeting| %>
<%= card_for meeting, size: :list_item %>
<% end %>
<%= link_to(
t("decidim.participatory_spaces.highlighted_meetings.see_all", count: meetings_count),
main_component_path(model),
class: "button button--sc light secondary button--right"
) %>
<% end %>