Make it possible to add banners to the SDG section
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
<% provide(:title) { title } %>
|
<% provide(:title) { title } %>
|
||||||
|
|
||||||
|
<%= render Shared::BannerComponent.new("sdg") %>
|
||||||
|
|
||||||
<div class="sdg-goals-index">
|
<div class="sdg-goals-index">
|
||||||
<%= link_list(*goal_links, class: "sdg-goal-list") %>
|
<%= link_list(*goal_links, class: "sdg-goal-list") %>
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ en:
|
|||||||
proposals: Proposals
|
proposals: Proposals
|
||||||
budgets: Participatory budgeting
|
budgets: Participatory budgeting
|
||||||
help_page: Help page
|
help_page: Help page
|
||||||
|
sdg: SDG
|
||||||
edit:
|
edit:
|
||||||
editing: Edit banner
|
editing: Edit banner
|
||||||
form:
|
form:
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ es:
|
|||||||
proposals: Propuestas
|
proposals: Propuestas
|
||||||
budgets: Presupuestos participativos
|
budgets: Presupuestos participativos
|
||||||
help_page: Página de ayuda
|
help_page: Página de ayuda
|
||||||
|
sdg: ODS
|
||||||
edit:
|
edit:
|
||||||
editing: Editar el banner
|
editing: Editar el banner
|
||||||
form:
|
form:
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
%w[homepage debates proposals budgets help_page].each do |section|
|
%w[homepage debates proposals budgets help_page sdg].each do |section|
|
||||||
WebSection.where(name: section).first_or_create!
|
WebSection.where(name: section).first_or_create!
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ namespace :db do
|
|||||||
task load_sdg: :environment do
|
task load_sdg: :environment do
|
||||||
ApplicationLogger.new.info "Adding Sustainable Development Goals content"
|
ApplicationLogger.new.info "Adding Sustainable Development Goals content"
|
||||||
load(Rails.root.join("db", "sdg.rb"))
|
load(Rails.root.join("db", "sdg.rb"))
|
||||||
|
WebSection.where(name: "sdg").first_or_create!
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Calculates the TSV column for all polls and legislation processes"
|
desc "Calculates the TSV column for all polls and legislation processes"
|
||||||
|
|||||||
Reference in New Issue
Block a user