Sha256: fe09b374f68e94bafe8e0dc6e8af6570d4d4f4039f74b31bc1250615335de021

Contents?: true

Size: 479 Bytes

Versions: 1

Compression:

Stored size: 479 Bytes

Contents

<!-- replace "erb[loud]:contains('card_for @proposal')" -->

<% if geocoding_comparison? %>
  <div class="compare-by-distance mb-6">
    <span class="label secondary float-right"><%= icon("map-pin-line") %> <%= t("away", scope: "decidim.reporting_proposals.proposals.compare.geocoding", meters: distance(1000 * @proposal.distance_from([proposal.latitude, proposal.longitude], :km))) %></span>
    <%= card_for proposal %>
  </div>
<% else %>
  <%= card_for proposal %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-reporting_proposals-0.6.0 app/overrides/decidim/proposals/proposals/compare/add_distance_badge.html.erb.deface