diff --git a/app/components/sdg/goals/index_component.html.erb b/app/components/sdg/goals/index_component.html.erb index f3b4b0fa8..99caed36a 100644 --- a/app/components/sdg/goals/index_component.html.erb +++ b/app/components/sdg/goals/index_component.html.erb @@ -1,5 +1,7 @@ <% provide(:title) { title } %> +<%= render Shared::BannerComponent.new("sdg") %> +
<%= link_list(*goal_links, class: "sdg-goal-list") %> diff --git a/config/locales/en/admin.yml b/config/locales/en/admin.yml index 81348ecf6..44a41d71b 100644 --- a/config/locales/en/admin.yml +++ b/config/locales/en/admin.yml @@ -35,6 +35,7 @@ en: proposals: Proposals budgets: Participatory budgeting help_page: Help page + sdg: SDG edit: editing: Edit banner form: diff --git a/config/locales/es/admin.yml b/config/locales/es/admin.yml index 5e54a3f0f..6ef2d0af4 100644 --- a/config/locales/es/admin.yml +++ b/config/locales/es/admin.yml @@ -35,6 +35,7 @@ es: proposals: Propuestas budgets: Presupuestos participativos help_page: Página de ayuda + sdg: ODS edit: editing: Editar el banner form: diff --git a/db/web_sections.rb b/db/web_sections.rb index 9683621e9..766902e4b 100644 --- a/db/web_sections.rb +++ b/db/web_sections.rb @@ -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! end diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake index 622f9e9c5..fdbffcd97 100644 --- a/lib/tasks/db.rake +++ b/lib/tasks/db.rake @@ -9,6 +9,7 @@ namespace :db do task load_sdg: :environment do ApplicationLogger.new.info "Adding Sustainable Development Goals content" load(Rails.root.join("db", "sdg.rb")) + WebSection.where(name: "sdg").first_or_create! end desc "Calculates the TSV column for all polls and legislation processes"