Extract proposals geozones to a component
This commit is contained in:
6
app/components/proposals/geozones_component.html.erb
Normal file
6
app/components/proposals/geozones_component.html.erb
Normal 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 %>
|
||||
4
app/components/proposals/geozones_component.rb
Normal file
4
app/components/proposals/geozones_component.rb
Normal file
@@ -0,0 +1,4 @@
|
||||
class Proposals::GeozonesComponent < ApplicationComponent
|
||||
delegate :image_path_for, to: :helpers
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user