Skip to content

Commit

Permalink
add global activity feed to menu
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanTG committed Jan 15, 2025
1 parent 38811a0 commit 895c60e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/views/pages/_menu.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
- if (@region)
%li.menu_header_01=link_to 'Add Location', suggest_path
%li=link_to 'About / Contact', about_path
%li=link_to 'Activity', activity_path
%li=link_to 'Events', events_path
%li=link_to 'High Scores', high_rollers_path
%li=link_to 'Activity Feed', region_activity_path
%li=link_to 'Location RSS', "/#{params[:region]}/location_machine_xrefs.rss", {:class => 'feed_icon'}
%li=link_to 'Score RSS', "/#{params[:region]}/machine_score_xrefs.rss", {:class => 'feed_icon'}
%li=link_to 'Event RSS', "/#{params[:region]}/events.rss", {:class => 'feed_icon'}
Expand All @@ -39,6 +39,7 @@
%li=link_to 'User Profile', current_user.nil? ? inspire_profile_path : profile_user_path(current_user.id)
%li=link_to 'App', app_path
- if !(@region)
%li=link_to 'Activity Feed', activity_path
%li=link_to 'Location RSS', "/location_machine_xrefs.rss", {:class => 'feed_icon'}
%li=link_to 'Blog', 'http://blog.pinballmap.com'
%li=link_to 'Store', store_path
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
get '/high_rollers' => 'pages#high_rollers'
get '/suggest' => 'pages#suggest_new_location'
post '/submitted_new_location' => 'pages#submitted_new_location'
get '/activity' => 'pages#activity'
get '/activity' => 'pages#activity', as: 'region_activity'

get '*page', to: 'locations#unknown_route'
end
Expand Down

0 comments on commit 895c60e

Please sign in to comment.