|
|
|
@ -59,13 +59,13 @@ 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" %>
|
|
|
|
|
<ul class="edu-menu-list" style="top:60px;">
|
|
|
|
|
<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, :type => 'a_shixun') %></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_path') %></li>
|
|
|
|
|
<% if User.current.partner.present? %>
|
|
|
|
|
<li><%= link_to '客户管理', partner_list_cooperate_path(User.current.partner) %></li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<li><%= link_to '我的项目', user_path(User.current, :type => 'a_project') %></li>
|
|
|
|
|
<li><%= link_to '我的开发项目', user_path(User.current, :type => 'a_project') %></li>
|
|
|
|
|
<li><%= link_to '我的众包', user_path(User.current, :type => 'a_package') %></li>
|
|
|
|
|
|
|
|
|
|
<% if User.current.department_members.count > 0 %>
|
|
|
|
@ -85,19 +85,19 @@ display: none; right:110px;">
|
|
|
|
|
<div class="overPart"></div>
|
|
|
|
|
<ul class="fl with50 edu-txt-center pr ul-leftline">
|
|
|
|
|
<% unless User.current.identity == "学生" %>
|
|
|
|
|
<li><%= link_to '新建课堂', new_course_path() %></li>
|
|
|
|
|
<li><%= link_to '新建翻转课堂', new_course_path() %></li>
|
|
|
|
|
<% 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_project_path() %></li>
|
|
|
|
|
<li><%= link_to '新建开发项目', new_project_path() %></li>
|
|
|
|
|
</ul>
|
|
|
|
|
<ul class="fl with50 edu-txt-center">
|
|
|
|
|
<% if User.current.profile_completed? %>
|
|
|
|
|
<li><%= link_to "加入课堂", join_private_courses_path, :remote => true %></li>
|
|
|
|
|
<li><%= link_to "加入项目", applied_join_project_path, :remote => true %></li>
|
|
|
|
|
<li><%= link_to "加入翻转课堂", join_private_courses_path, :remote => true %></li>
|
|
|
|
|
<li><%= link_to "加入开发项目", applied_join_project_path, :remote => true %></li>
|
|
|
|
|
<% 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 %>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|