Extract proposals geozones to a component

This commit is contained in:
Senén Rodero Rodríguez
2023-06-19 10:52:52 +02:00
parent 37695cd262
commit e4cd02c6a9
4 changed files with 6 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
<div class="sidebar-divider"></div>
<h2 class="sidebar-title"><%= t("shared.tags_cloud.districts") %></h2>
<br>
<%= link_to map_proposals_path, id: "map", title: t("shared.tags_cloud.districts_list") do %>
<%= image_tag(image_path_for("map.jpg"), alt: t("shared.tags_cloud.districts_list")) %>
<% end %>

View File

@@ -0,0 +1,4 @@
class Proposals::GeozonesComponent < ApplicationComponent
delegate :image_path_for, to: :helpers
end