diff --git a/config/navigation.rb b/config/navigation.rb index 54d5330..1571aed 100644 --- a/config/navigation.rb +++ b/config/navigation.rb @@ -62,11 +62,7 @@ SimpleNavigation::Configuration.run do |navigation| unless supporter_signed_in? primary.item :home, I18n.t('.shared.topnavigation.support'), "/#{I18n.locale}" end - primary.item :initiative, I18n.t('.shared.topnavigation.initiative'), initiative_text_path do | initiative | - initiative.item :arguments, I18n.t('.shared.topnavigation.arguments'), arguments_path - initiative.item :faq, I18n.t('.shared.topnavigation.faq'), faq_path - initiative.item :numbers, I18n.t('.shared.topnavigation.numbers'), numbers_path - end + primary.item :initiative, I18n.t('.shared.topnavigation.initiative'), initiative_text_path primary.item :statements, I18n.t('.shared.topnavigation.statements'), statements_path do |statements| statements.item :new_statement, I18n.t('.supporters.publicity.renew'), new_publicity_path statements.item :new_statement, 'Statement Administration', admin_publicities_path if supporter_signed_in? && current_supporter.admin? diff --git a/config/routes.rb b/config/routes.rb index 48f7df6..778dfe5 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -13,11 +13,8 @@ Rails.application.routes.draw do localized do resources :greendays get '/initiative_text', to: 'pages#show', as: :initiative_text, page: 'initiative_text' - get '/arguments', to: 'pages#show', as: :arguments, page: 'arguments' - get '/faq', to: 'pages#show', as: :faq, page: 'faq' get '/terms_and_conditions', to: 'pages#show', as: :terms_and_conditions, page: 'terms_and_conditions' get '/donation', to: 'pages#show', as: :donation, page: 'donation' - get '/numbers', to: 'pages#show', as: :numbers, page: 'numbers' get '/statements', to: 'pages#show', as: :statements, page: 'statements' end