|
|
|
@ -65,29 +65,28 @@
|
|
|
|
|
<div class="nav-border"><p id="nav-white"></p></div>
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="fr edu-menu-panel ml15" style="height:60px;">
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
<%= link_to (image_tag(url_to_avatar(User.current), :width =>"34", :height => "34", :class => "radius", :nhname => "avatar_image", :alt=>"头像", :id => "nh_user_logo")), user_path(User.current),:class => "fr mt15 ml40" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<span class="fr font-16 color-white mt13 ml40"><a href="<%= signin_path %>" class="color-white mr3">登录</a>/<a href="<%= user_join_path %>" class="color-white ml3">注册</a></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<ul class="edu-menu-list edu-menu-lists" 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, :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_package') %></li>
|
|
|
|
|
<ul class="edu-menu-list edu-menu-lists" 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, :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_package') %></li>
|
|
|
|
|
|
|
|
|
|
<% if User.current.department_members.count > 0 %>
|
|
|
|
|
<li><%= link_to '学院统计', statistics_college_path(User.current.department_members.first.try(:department)) %></li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<li><%= link_to '账号管理', my_account_path %></li>
|
|
|
|
|
<li class="bor-top-greyE"><%= link_to '退出', signout_path %></li>
|
|
|
|
|
</ul>
|
|
|
|
|
<% if User.current.department_members.count > 0 %>
|
|
|
|
|
<li><%= link_to '学院统计', statistics_college_path(User.current.department_members.first.try(:department)) %></li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<li><%= link_to '账号管理', my_account_path %></li>
|
|
|
|
|
<li class="bor-top-greyE"><%= link_to '退出', signout_path %></li>
|
|
|
|
|
</ul>
|
|
|
|
|
<% else %>
|
|
|
|
|
<span class="fr font-16 color-white mt13 ml40"><a href="<%= signin_path %>" class="color-white mr3">登录</a>/<a href="<%= user_join_path %>" class="color-white ml3">注册</a></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|