2014-01-23 10:08:46 +08:00
|
|
|
<%
|
2014-02-17 15:37:04 +08:00
|
|
|
request.headers['REQUEST_URI'] = "" if request.headers['REQUEST_URI'].nil?
|
2014-02-24 16:39:06 +08:00
|
|
|
realUrl = request.original_url
|
|
|
|
if (realUrl.match(/project\/course/))
|
2014-01-23 10:08:46 +08:00
|
|
|
@nav_dispaly_course_label = 1
|
2014-02-24 16:39:06 +08:00
|
|
|
elsif (realUrl.match(/projects/))
|
2014-01-23 10:08:46 +08:00
|
|
|
@nav_dispaly_project_label = 1
|
2014-02-24 16:39:06 +08:00
|
|
|
elsif (realUrl.match(/users/))
|
2014-01-23 10:08:46 +08:00
|
|
|
@nav_dispaly_user_label = 1
|
2014-02-24 16:39:06 +08:00
|
|
|
elsif (realUrl.match(/contest/))
|
2014-01-23 10:08:46 +08:00
|
|
|
@nav_dispaly_contest_label = 1
|
2014-02-24 16:39:06 +08:00
|
|
|
elsif (realUrl.match(/calls/))
|
2014-01-23 10:08:46 +08:00
|
|
|
@nav_dispaly_bid_label = 1
|
2014-02-24 16:39:06 +08:00
|
|
|
elsif (realUrl.match(/forums/))
|
2014-01-23 10:08:46 +08:00
|
|
|
@nav_dispaly_forum_label = 1
|
2014-02-24 16:39:06 +08:00
|
|
|
elsif (realUrl.match(/[^projects]\/course[^\.]/))
|
2014-02-22 09:44:14 +08:00
|
|
|
@nav_dispaly_course_label = 1
|
|
|
|
@nav_dispaly_project_label = 1
|
|
|
|
@nav_dispaly_contest_label = 1
|
2014-02-24 16:39:06 +08:00
|
|
|
elsif (realUrl.match(/course\.trustie\.net/))
|
2014-02-24 10:40:45 +08:00
|
|
|
@nav_dispaly_course_all_label = 1
|
|
|
|
@nav_dispaly_teacher_all_label = 1
|
|
|
|
@nav_dispaly_forum_label = 1
|
2014-01-23 10:08:46 +08:00
|
|
|
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
|
|
|
|
%>
|
2013-08-01 10:33:49 +08:00
|
|
|
<!DOCTYPE html>
|
2014-01-22 09:22:12 +08:00
|
|
|
<html lang="<%= current_language %>">
|
2013-08-01 10:33:49 +08:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title><%=h html_title %></title>
|
|
|
|
<meta name="description" content="<%= Redmine::Info.app_name %>" />
|
|
|
|
<meta name="keywords" content="issue,bug,tracker" />
|
|
|
|
<%= csrf_meta_tag %>
|
|
|
|
<%= favicon %>
|
2013-10-22 09:02:48 +08:00
|
|
|
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', 'nyan', :media => 'all' %>
|
2013-08-01 10:33:49 +08:00
|
|
|
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
|
|
|
|
<%= javascript_heads %>
|
|
|
|
<%= heads_for_theme %>
|
|
|
|
<%= call_hook :view_layouts_base_html_head %>
|
|
|
|
<!-- page specific tags -->
|
|
|
|
<%= yield :header_tags -%>
|
|
|
|
</head>
|
|
|
|
<body class="<%=h body_css_classes %>">
|
|
|
|
<div id="wrapper">
|
|
|
|
<div id="wrapper2">
|
|
|
|
<div id="wrapper3">
|
|
|
|
<%=render :partial => 'layouts/base_header'%>
|
|
|
|
<div id="main" class="nosidebar">
|
|
|
|
<div id="content_">
|
|
|
|
<%= render_flash_messages %>
|
|
|
|
<%= yield %>
|
|
|
|
<%= call_hook :view_layouts_base_content %>
|
|
|
|
<div style="clear:both;"></div>
|
2013-08-04 11:08:30 +08:00
|
|
|
<%=render :partial => 'layouts/base_footer'%>
|
2013-08-01 10:33:49 +08:00
|
|
|
</div>
|
2013-08-04 11:08:30 +08:00
|
|
|
|
2013-08-01 10:33:49 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
|
|
|
|
<div id="ajax-modal" style="display:none;"></div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<%= call_hook :view_layouts_base_body_bottom %>
|
|
|
|
</body>
|
|
|
|
</html>
|