% request.headers['REQUEST_URI'] = "" if request.headers['REQUEST_URI'].nil? realUrl = request.original_url if (realUrl.match(/project\/course/)) @nav_dispaly_course_label = 1 elsif (realUrl.match(/projects/)) @nav_dispaly_project_label = 1 elsif (realUrl.match(/users/)) @nav_dispaly_user_label = 1 elsif (realUrl.match(/contest/)) @nav_dispaly_contest_label = 1 elsif (realUrl.match(/calls/)) @nav_dispaly_bid_label = 1 elsif (realUrl.match(/forums/)) @nav_dispaly_forum_label = 1 elsif (realUrl.match(/[^projects]\/course[^\.]/)) @nav_dispaly_course_label = 1 @nav_dispaly_project_label = 1 @nav_dispaly_contest_label = 1 elsif (realUrl.match(/course\.trustie\.net/)) @nav_dispaly_course_all_label = 1 @nav_dispaly_teacher_all_label = 1 @nav_dispaly_forum_label = 1 else @nav_dispaly_course_label = 1 @nav_dispaly_project_label = 1 @nav_dispaly_user_label = 1 @nav_dispaly_contest_label = 1 @nav_dispaly_bid_label = 1 @nav_dispaly_forum_label = 1 end %>