Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ class ApplicationController < ActionController::Base

helper_method :current_event
helper_method :current_website
helper_method :display_staff_event_subnav?
helper_method :display_staff_selection_subnav?
helper_method :display_staff_program_subnav?
helper_method :display_website_subnav?
helper_method :program_mode?
helper_method :schedule_mode?
helper_method :program_tracks
Expand Down Expand Up @@ -150,34 +146,18 @@ def enable_staff_event_subnav
@display_staff_subnav = true
end

def display_staff_event_subnav?
@display_staff_subnav
end

def enable_staff_selection_subnav
@display_selection_subnav = true
end

def display_staff_selection_subnav?
@display_selection_subnav
end

def enable_staff_program_subnav
@display_program_subnav = true
end

def display_staff_program_subnav?
@display_program_subnav
end

def enable_staff_schedule_subnav
@display_schedule_subnav = true
end

def display_website_subnav?
@display_website_subnav
end

def enable_website_subnav
@display_website_subnav = true
end
Expand Down
16 changes: 16 additions & 0 deletions app/helpers/navbar_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,20 @@ def nav_item_class(key)
def subnav_item_class(key)
'active' if @active_subnav_key == key
end

def display_staff_event_subnav?
@display_staff_subnav
end

def display_staff_selection_subnav?
@display_selection_subnav
end

def display_staff_program_subnav?
@display_program_subnav
end

def display_website_subnav?
@display_website_subnav
end
end