|
|
@ -5,9 +5,9 @@
|
|
|
|
<ul id="header-nav">
|
|
|
|
<ul id="header-nav">
|
|
|
|
<!-- <li class="<%#= params[:controller] == "welcome" ? 'active' : '' %>"><%#= link_to "首页", home_path %></li>-->
|
|
|
|
<!-- <li class="<%#= params[:controller] == "welcome" ? 'active' : '' %>"><%#= link_to "首页", home_path %></li>-->
|
|
|
|
<li class="<%= subjects_controller.include?(params[:controller]) ? " active" : "" %>"><%= link_to "实践课程", subjects_path %></li>
|
|
|
|
<li class="<%= subjects_controller.include?(params[:controller]) ? " active" : "" %>"><%= link_to "实践课程", subjects_path %></li>
|
|
|
|
<li class="<%= course_controller.include?(params[:controller]) ? " active" : "" %>"><%= link_to "翻转课堂", courses_path %></li>
|
|
|
|
|
|
|
|
<!-- 精选实训 -->
|
|
|
|
<!-- 精选实训 -->
|
|
|
|
<li class="pr <%= shixuns_controller.include?(params[:controller]) ? " active" : "" %>"><%= link_to "实训项目", shixuns_path %><img src="/images/educoder/hot-h.png" class="nav-img" /></li>
|
|
|
|
<li class="pr <%= shixuns_controller.include?(params[:controller]) ? " active" : "" %>"><%= link_to "实训项目", shixuns_path %><img src="/images/educoder/hot-h.png" class="nav-img" /></li>
|
|
|
|
|
|
|
|
<li class="<%= course_controller.include?(params[:controller]) ? " active" : "" %>"><%= link_to "教学课堂", "/classrooms" %></li>
|
|
|
|
|
|
|
|
|
|
|
|
<% careers = Career.published.order("created_at asc") %>
|
|
|
|
<% careers = Career.published.order("created_at asc") %>
|
|
|
|
<% if careers.present? %>
|
|
|
|
<% if careers.present? %>
|
|
|
@ -49,7 +49,7 @@ display: none; right:110px;">
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="seperateLine"></div>
|
|
|
|
<div class="seperateLine"></div>
|
|
|
|
<input type="text" class="search-input fl" id="search-input" name="search_keyword" placeholder="实践课程/翻转课堂/实训项目/交流问答"/>
|
|
|
|
<input type="text" class="search-input fl" id="search-input" name="search_keyword" placeholder="实践课程/教学课堂/实训项目/交流问答"/>
|
|
|
|
<a href="javascript:void(0)" class="search-icon fl" id="header_keyword_search">
|
|
|
|
<a href="javascript:void(0)" class="search-icon fl" id="header_keyword_search">
|
|
|
|
<i class="iconfont icon-sousuo color-blue mt14 fl"></i>
|
|
|
|
<i class="iconfont icon-sousuo color-blue mt14 fl"></i>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
@ -59,7 +59,7 @@ display: none; right:110px;">
|
|
|
|
<%= link_to (image_tag(url_to_avatar(User.current), :width =>"34", :height => "34", :class => "radius mt13", :nhname => "avatar_image", :alt=>"头像", :id => "nh_user_logo")), user_path(User.current),:class => "fl" %>
|
|
|
|
<%= link_to (image_tag(url_to_avatar(User.current), :width =>"34", :height => "34", :class => "radius mt13", :nhname => "avatar_image", :alt=>"头像", :id => "nh_user_logo")), user_path(User.current),:class => "fl" %>
|
|
|
|
<ul class="edu-menu-list" style="top:60px;">
|
|
|
|
<ul class="edu-menu-list" style="top:60px;">
|
|
|
|
<span class="bor-bottom-greyE currentName task-hide"><%= User.current.show_name %></span>
|
|
|
|
<span class="bor-bottom-greyE currentName task-hide"><%= User.current.show_name %></span>
|
|
|
|
<li><%= link_to '我的翻转课堂', user_path(User.current) %></li>
|
|
|
|
<li><%= link_to '我的教学课堂', user_path(User.current) %></li>
|
|
|
|
<li><%= link_to '我的实训项目', user_path(User.current, :type => 'a_shixun') %></li>
|
|
|
|
<li><%= link_to '我的实训项目', user_path(User.current, :type => 'a_shixun') %></li>
|
|
|
|
<li><%= link_to '我的实践课程', user_path(User.current, :type => 'a_path') %></li>
|
|
|
|
<li><%= link_to '我的实践课程', user_path(User.current, :type => 'a_path') %></li>
|
|
|
|
<li><%= link_to '我的开发项目', user_path(User.current, :type => 'a_project') %></li>
|
|
|
|
<li><%= link_to '我的开发项目', user_path(User.current, :type => 'a_project') %></li>
|
|
|
@ -83,7 +83,7 @@ display: none; right:110px;">
|
|
|
|
<div class="overPart"></div>
|
|
|
|
<div class="overPart"></div>
|
|
|
|
<ul class="fl with50 edu-txt-center pr ul-leftline">
|
|
|
|
<ul class="fl with50 edu-txt-center pr ul-leftline">
|
|
|
|
<% unless User.current.identity == "学生" %>
|
|
|
|
<% unless User.current.identity == "学生" %>
|
|
|
|
<li><%= link_to '新建翻转课堂', new_course_path() %></li>
|
|
|
|
<li><%= link_to '新建教学课堂', "/classrooms" %></li>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<li><%= link_to '新建实训项目', new_shixun_path() %></li>
|
|
|
|
<li><%= link_to '新建实训项目', new_shixun_path() %></li>
|
|
|
|
<li><%= link_to '新建实践课程', new_subject_path() %></li>
|
|
|
|
<li><%= link_to '新建实践课程', new_subject_path() %></li>
|
|
|
@ -91,10 +91,10 @@ display: none; right:110px;">
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
<ul class="fl with50 edu-txt-center">
|
|
|
|
<ul class="fl with50 edu-txt-center">
|
|
|
|
<% if User.current.profile_completed? %>
|
|
|
|
<% if User.current.profile_completed? %>
|
|
|
|
<li><%= link_to "加入翻转课堂", join_private_courses_path, :remote => true %></li>
|
|
|
|
<li><%= link_to "加入教学课堂", join_private_courses_path, :remote => true %></li>
|
|
|
|
<li><%= link_to "加入开发项目", applied_join_project_path, :remote => true %></li>
|
|
|
|
<li><%= link_to "加入开发项目", applied_join_project_path, :remote => true %></li>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<li><%= link_to "加入翻转课堂", 'javascript:void(0)', onclick: 'showUserProfileModal()' %></li>
|
|
|
|
<li><%= link_to "加入教学课堂", 'javascript:void(0)', onclick: 'showUserProfileModal()' %></li>
|
|
|
|
<li><%= link_to "加入开发项目", 'javascript:void(0)', onclick: 'showUserProfileModal()' %></li>
|
|
|
|
<li><%= link_to "加入开发项目", 'javascript:void(0)', onclick: 'showUserProfileModal()' %></li>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|