Extract proposals geozones to a component
This commit is contained in:
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
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
<% if params[:retired].blank? %>
|
<% if params[:retired].blank? %>
|
||||||
<%= render "categories" %>
|
<%= render "categories" %>
|
||||||
<%= render "shared/tag_cloud", taggable: "Proposal" %>
|
<%= render "shared/tag_cloud", taggable: "Proposal" %>
|
||||||
<%= render "geozones" %>
|
<%= render Proposals::GeozonesComponent.new %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<%= render "retired" %>
|
<%= render "retired" %>
|
||||||
<%= render "proposals_lists" %>
|
<%= render "proposals_lists" %>
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
<%= link_to t("proposals.index.start_proposal"), new_proposal_path, class: "button radius expand" %>
|
<%= link_to t("proposals.index.start_proposal"), new_proposal_path, class: "button radius expand" %>
|
||||||
<%= render "shared/tag_cloud", taggable: "Proposal" %>
|
<%= render "shared/tag_cloud", taggable: "Proposal" %>
|
||||||
<%= render "categories" %>
|
<%= render "categories" %>
|
||||||
<%= render "geozones" %>
|
<%= render Proposals::GeozonesComponent.new %>
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user