<% request.headers['REQUEST_URI'] = "" if request.headers['REQUEST_URI'].nil? realUrl = request.original_url if (realUrl.match(/forge\.trustie\.net\/*/)) @nav_dispaly_project_label = 1 @nav_dispaly_forum_label = 1 elsif (realUrl.match(/course\.trustie\.net\/*/)) @nav_dispaly_course_all_label = 1 @nav_dispaly_forum_label = 1 @nav_dispaly_course_label = nil @nav_dispaly_store_all_label = 1 elsif (realUrl.match(/user\.trustie\.net\/*/)) @nav_dispaly_home_path_label = 1 @nav_dispaly_main_course_label = 1 @nav_dispaly_main_project_label = 1 @nav_dispaly_main_contest_label = 1 elsif (realUrl.match(/contest\.trustie\.net\/*/)) @nav_dispaly_contest_label = 1 @nav_dispaly_store_all_label = 1 else @nav_dispaly_project_all_label = 1 @nav_dispaly_course_all_label = 1 @nav_dispaly_forum_label = 1 @nav_dispaly_bid_label = 1 @nav_dispaly_contest_label = 1 @nav_dispaly_store_all_label = 1 @nav_dispaly_user_label = 1 end %>
<%= render_menu :account_menu -%>
<% if User.current.logged? -%>
<% end -%> <%#= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%> <%= render_dynamic_nav if User.current.logged? || !Setting.login_required? -%> <%# 自建导航条在base页面中以 (@nav_dispaly......) 开头变量设定, 全局搜索即可发现 %>