app/views/decidim/votings/votings/show.html.erb in decidim-elections-0.24.3 vs app/views/decidim/votings/votings/show.html.erb in decidim-elections-0.25.0.rc1
- old
+ new
@@ -1,20 +1,20 @@
+<% add_decidim_meta_tags(title: translated_attribute(current_participatory_space.title)) %>
+
<%
edit_link(
- resource_locator(current_voting).edit,
+ resource_locator(current_participatory_space).edit,
:update,
:voting,
- voting: current_voting
+ voting: current_participatory_space
)
%>
-<div class="wrapper">
- <div class="row column">
- <% Decidim::ContentBlock.published.for_scope(:voting_landing_page, organization: current_organization).where(scoped_resource_id: current_voting.id).each do |content_block| %>
- <% next unless content_block.manifest %>
+<% landing_content_blocks.each do |content_block| %>
+ <%= cell content_block.manifest.cell, content_block %>
+<% end %>
- <%= cell content_block.manifest.cell, content_block %>
- <% end %>
- </div>
-</div>
+<% if landing_content_blocks.empty? %>
+ <%= cell("decidim/votings/content_blocks/landing_page/header", nil) %>
-<%= render partial: "voting_details", locals: { voting: current_voting } %>
+ <%= cell("decidim/votings/content_blocks/landing_page/description", nil) %>
+<% end %>