Skip to content

Commit

Permalink
Hide map for specific proposals
Browse files Browse the repository at this point in the history
  • Loading branch information
fblupi committed Nov 29, 2024
1 parent b07d62e commit 56ba433
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,27 @@

<%= render layout: "layouts/decidim/shared/layout_two_col" do %>

<% if Decidim::Map.available?(:geocoding, :dynamic) && component_settings.geocoding_enabled? && !(ENV["PROPOSAL_COMPONENTS_WITHOUT_MAPS"] || "").split(',').include?(current_component.id) %>
<div class="proposal-list__map">
<%= dynamic_map_for proposals_data_for_map(@all_geocoded_proposals) do %>
<template id="marker-popup">
<div class="space-y-6">
<a href="${link}" class="card__list">
<div class="card__list-content">
<h3 class="h4 card__list-title">${title}</h3>
<div class="card__list-metadata">
{{each JSON.parse(items)}}
<span>{{html icon}}{{html text}}</span>
{{/each}}
</div>
</div>
</a>
</div>
</template>
<% end %>
</div>
<% end %>

<%= render partial: "decidim/shared/component_announcement" %>

<% if show_voting_rules? %>
Expand Down

0 comments on commit 56ba433

Please sign in to comment.