removed statements
This commit is contained in:
@@ -63,10 +63,6 @@ SimpleNavigation::Configuration.run do |navigation|
|
|||||||
primary.item :home, I18n.t('.shared.topnavigation.support'), "/#{I18n.locale}"
|
primary.item :home, I18n.t('.shared.topnavigation.support'), "/#{I18n.locale}"
|
||||||
end
|
end
|
||||||
primary.item :initiative, I18n.t('.shared.topnavigation.initiative'), initiative_text_path
|
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?
|
|
||||||
end
|
|
||||||
if supporter_signed_in?
|
if supporter_signed_in?
|
||||||
primary.item :home, I18n.t('.shared.topnavigation.my_account'), "/#{I18n.locale}" do |my_account|
|
primary.item :home, I18n.t('.shared.topnavigation.my_account'), "/#{I18n.locale}" do |my_account|
|
||||||
my_account.item :edit_account, I18n.t('.supporters.new.edit'), edit_supporter_registration_path()
|
my_account.item :edit_account, I18n.t('.supporters.new.edit'), edit_supporter_registration_path()
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ Rails.application.routes.draw do
|
|||||||
get '/initiative_text', to: 'pages#show', as: :initiative_text, page: 'initiative_text'
|
get '/initiative_text', to: 'pages#show', as: :initiative_text, page: 'initiative_text'
|
||||||
get '/terms_and_conditions', to: 'pages#show', as: :terms_and_conditions, page: 'terms_and_conditions'
|
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 '/donation', to: 'pages#show', as: :donation, page: 'donation'
|
||||||
get '/statements', to: 'pages#show', as: :statements, page: 'statements'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
get '/cities_autocomplete', to: 'cities_autocomplete#index', as: :cities_autocomplete
|
get '/cities_autocomplete', to: 'cities_autocomplete#index', as: :cities_autocomplete
|
||||||
|
|||||||
Reference in New Issue
Block a user