<% 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 %> <%=h html_title %> <%= csrf_meta_tag %> <%= favicon %> <%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', 'nyan', :media => 'all' %> <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> <%= javascript_heads %> <%= heads_for_theme %> <%= call_hook :view_layouts_base_html_head %> <%= yield :header_tags -%>
<%=render :partial => 'layouts/base_header'%>
<%= render_flash_messages %> <%= yield %> <%= call_hook :view_layouts_base_content %>
<%=render :partial => 'layouts/base_footer'%>
<%= call_hook :view_layouts_base_body_bottom %>