Merge branch 'szzh' of http://repository.trustie.net/xianbo/trustie2 into szzh
commit
0e6d9a804a
@ -0,0 +1,84 @@
|
|||||||
|
<%
|
||||||
|
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
|
||||||
|
%>
|
||||||
|
|
||||||
|
<nav class="navbar navbar-default" role="navigation">
|
||||||
|
<!-- Brand and toggle get grouped for better mobile display -->
|
||||||
|
<div class="navbar-header">
|
||||||
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
||||||
|
<span class="sr-only">Toggle navigation</span>
|
||||||
|
<span class="icon-bar">1</span>
|
||||||
|
<span class="icon-bar">2</span>
|
||||||
|
<span class="icon-bar">3</span>
|
||||||
|
</button>
|
||||||
|
<%=link_to image_tag("/images/logo5.png", class: 'navbar-brand', style:"width: 50px; height: 50px; padding:4px"), '/' %>
|
||||||
|
<a class="navbar-brand hidden" href="#">Trustie</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||||
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||||
|
<ul class="nav navbar-nav">
|
||||||
|
<%= bootstrap_render_dynamic_nav if User.current.logged? || !Setting.login_required? -%>
|
||||||
|
<li class="dropdown hidden">
|
||||||
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">Action</a></li>
|
||||||
|
<li><a href="#">Another action</a></li>
|
||||||
|
<li><a href="#">Something else here</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">Separated link</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">One more separated link</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<form class="navbar-form navbar-left hidden" role="search">
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" class="form-control" placeholder="Search">
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="btn btn-default">Submit</button>
|
||||||
|
</form>
|
||||||
|
<ul class="nav navbar-nav navbar-right <%= "hidden" unless User.current.logged? %>">
|
||||||
|
<%= bootstrap_render_menu :account_menu -%>
|
||||||
|
|
||||||
|
<li class="dropdown">
|
||||||
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><%=User.current%> <b class="caret"></b></a>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li>
|
||||||
|
<%=link_to l(:label_my_message)+'('+User.current.count_new_jour.to_s+')', { :controller => 'users', :action => 'user_newfeedback', id: User.current.id, host: Setting.user_domain }, {:class => 'my-message'} if User.current.logged? -%></li>
|
||||||
|
<li><%=link_to l(:label_my_course), {:controller => 'users', :action => 'user_courses', id: User.current.id, host: Setting.course_domain} %></li>
|
||||||
|
<li><%=link_to l(:label_my_projects),{:controller => 'users', :action => 'user_projects', id: User.current.id, host: Setting.project_domain} %></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><%=link_to l(:label_user_edit), {:controller => 'my', :action=> 'account', host: Setting.user_domain}%></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
@ -0,0 +1,47 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="<%= current_language %>">
|
||||||
|
<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 %>
|
||||||
|
<%= 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 %>
|
||||||
|
<%= javascript_include_tag "jquery.leanModal.min" %>
|
||||||
|
<%= javascript_include_tag 'seems_rateable/jRating', 'seems_rateable/rateable' %>
|
||||||
|
<%= heads_for_theme %>
|
||||||
|
<%= bootstrap_head %>
|
||||||
|
<%= 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/bootstrap_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>
|
||||||
|
<%= render :partial => 'layouts/base_footer' %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</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>
|
After Width: | Height: | Size: 5.1 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue