diff --git a/app/views/layouts/_base_header.html.erb b/app/views/layouts/_base_header.html.erb index 42aa4ce94..95edbfa8b 100644 --- a/app/views/layouts/_base_header.html.erb +++ b/app/views/layouts/_base_header.html.erb @@ -5,13 +5,20 @@ @nav_dispaly_home_path_label = 1 @nav_dispaly_main_course_label = 1 @nav_dispaly_main_project_label = 1 + elsif (realUrl.match(/project\/course/)) + @nav_dispaly_course_label = 1 + elsif (realUrl.match(/projects/)) + @nav_dispaly_project_label = 1 elsif (realUrl.match(/contest/)) @nav_dispaly_contest_label = 1 elsif (realUrl.match(/calls/)) - @nav_dispaly_home_path_label = 1 @nav_dispaly_bid_label = 1 elsif (realUrl.match(/forums/)) @nav_dispaly_forum_label = 1 + elsif (realUrl.match(/[^forge]\/course[^\.]/)) + @nav_dispaly_course_label = 1 + @nav_dispaly_project_label = 1 + @nav_dispaly_contest_label = 1 elsif (realUrl.match(/forge\.trustie\.net\/*/)) @nav_dispaly_project_label = 1 @nav_dispaly_forum_label = 1