Skip to content

Commit

Permalink
Revert "Comment out unused pages entrypoints"
Browse files Browse the repository at this point in the history
This reverts commit d1eb29f.
  • Loading branch information
mberlanda committed Jul 27, 2023
1 parent 46eb1e4 commit cafdd5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions app/controllers/welcome_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class WelcomeController < ApplicationController
skip_before_action :authenticate_user!

Expand All @@ -13,10 +15,10 @@ def menu_actions
default = current_user ? {} : { login: new_user_session_path }
@actions = default.merge(
upcoming_events: upcoming_events_path,
# news: news_index_path,
# posts: all_posts_path,
# photogallery: all_albums_path,
facebook: FACEBOOK_GROUP_URL,
news: news_index_path,
posts: all_posts_path,
photogallery: all_albums_path,
regolamento: regolamento_path
).map(&build_action)
end
Expand Down
6 changes: 3 additions & 3 deletions app/views/layouts/_nav.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
%i.fa.fa-question-circle
= t('navbar.admin.demo')
%li= link_to t('navbar.events.upcoming'), seo_url(upcoming_events_path), **nav_opt(:upcoming_events)
/ %li= link_to t('navbar.news.index'), seo_url(news_index_path), **nav_opt(:news)
/ %li= link_to t('navbar.posts.index'), seo_url(all_posts_path), **nav_opt(:comunicazioni)
/ %li= link_to t('navbar.albums.index'), seo_url(all_albums_path), **nav_opt(:all_albums)
%li= link_to t('navbar.news.index'), seo_url(news_index_path), **nav_opt(:news)
%li= link_to t('navbar.posts.index'), seo_url(all_posts_path), **nav_opt(:comunicazioni)
%li= link_to t('navbar.albums.index'), seo_url(all_albums_path), **nav_opt(:all_albums)

%ul.nav.navbar-nav.navbar-right
/ - unless I18n.locale == :en
Expand Down

0 comments on commit cafdd5a

Please sign in to comment.