diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index 805e7aebc..c00bcf95b 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -1,52 +1,7 @@ class PagesController < ApplicationController skip_authorization_check - def accessibility - end - - def census_terms - end - - def conditions - end - - def general_terms - end - - def privacy - end - - def coming_soon - end - - def how_it_works - end - - def how_to_use - end - - def more_information - end - - def opendata - end - - def participation - end - - def proposals_info - end - - def participation_facts - end - - def participation_world - end - - def verify - end - - def blog - redirect_to "http://diario.madrid.es/participa/" + def show + render action: params[:id] end end diff --git a/app/views/layouts/_footer.html.erb b/app/views/layouts/_footer.html.erb index b170aa431..411d32675 100644 --- a/app/views/layouts/_footer.html.erb +++ b/app/views/layouts/_footer.html.erb @@ -13,7 +13,7 @@ consul: link_to(t("layouts.footer.consul"), t("layouts.footer.consul_url"), target: "blank")).html_safe %> <%= t("layouts.footer.contact_us") %> - <%= link_to t("layouts.footer.faq"), faq_path %> + <%= link_to t("layouts.footer.faq"), page_path('faq') %>

@@ -45,10 +45,10 @@

<%= t("layouts.footer.copyright", year: Time.now.year) %> |  - <%= link_to t("layouts.footer.more_info"), "/more_information" %> |  - <%= link_to t("layouts.footer.privacy"), "/privacy" %> |  - <%= link_to t("layouts.footer.conditions"), "/conditions" %> |  - <%= link_to t("layouts.footer.accessibility"), "/accessibility" %> + <%= link_to t("layouts.footer.more_info"), page_path('/more_information') %> |  + <%= link_to t("layouts.footer.privacy"), page_path('privacy') %> |  + <%= link_to t("layouts.footer.conditions"), page_path('conditions') %> |  + <%= link_to t("layouts.footer.accessibility"), page_path('/accessibility') %>

diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 4c5bac804..67012211e 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -57,7 +57,7 @@
<%= link_to t("layouts.header.debates"), debates_path, class: ("active" if current_page?(controller: "/debates")) %> <%= link_to t("layouts.header.proposals"), proposals_path, class: ("active" if current_page?(controller: "/proposals")) %> - <%= link_to t("layouts.header.more_information"), "/more_information", class: ("active" if current_page?("/more_information")) %> + <%= link_to t("layouts.header.more_information"), page_path('more_information'), class: ("active" if current_page?("/more_information")) %> <%= link_to t("layouts.header.external_link_blog_url"), target: "_blank" do %> <%= t("layouts.header.external_link_blog") %> diff --git a/app/views/pages/more_information.html.erb b/app/views/pages/more_information.html.erb index 3215c7249..cdc4afc05 100644 --- a/app/views/pages/more_information.html.erb +++ b/app/views/pages/more_information.html.erb @@ -5,49 +5,49 @@

<%= t('pages.titles.more_information') %>