2015-08-18 11:47:22 +08:00
|
|
|
<div class="navHomepage">
|
|
|
|
<div class="navHomepageLogo fl">
|
2015-08-19 14:43:12 +08:00
|
|
|
<%=link_to image_tag("../images/logo.png",width:"51px", height: "45px",class: "mt3"), user_activities_path(User.current.id)%>
|
2015-08-18 11:47:22 +08:00
|
|
|
</div>
|
|
|
|
<div class="fl">
|
|
|
|
<ul>
|
|
|
|
<li class="navHomepageMenu fl">
|
|
|
|
<a href="javascript:void(0);" class="homepageWhite f16">首页</a>
|
|
|
|
</li>
|
|
|
|
<li class="navHomepageMenu fl">
|
2015-08-24 13:54:15 +08:00
|
|
|
<a href="<%=url_for(:controller => 'users', :action => 'user_resource',:id=>@user.id,:type=>1)%>" class="homepageWhite f16">资源库</a></li>
|
2015-08-18 11:47:22 +08:00
|
|
|
<li class="navHomepageMenu fl">
|
|
|
|
<a href="javascript:void(0);" class="homepageWhite f16">作业</a>
|
|
|
|
</li>
|
|
|
|
<li class="navHomepageMenu fl">
|
|
|
|
<a href="javascript:void(0);" class="homepageWhite f16">联系人</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2015-08-24 15:30:11 +08:00
|
|
|
<div class="navHomepageSearchBoxcontainer fl">
|
2015-08-18 11:47:22 +08:00
|
|
|
<form class="navHomepageSearchBox">
|
|
|
|
<input type="text" name="navHomepageSearch" class="navHomepageSearchInput" />
|
|
|
|
<a href="javascript:void(0);" class="homepageSearchIcon"></a>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="navHomepageProfile">
|
|
|
|
<ul>
|
|
|
|
<li class="homepageProfileMenuIcon">
|
2015-08-19 17:14:19 +08:00
|
|
|
<%= link_to "<div class='mt5 mb8'>#{image_tag(url_to_avatar(User.current),:width =>"40",:height => "40",:alt=>"头像", :id => "nh_user_logo")}</div>".html_safe,user_activities_path(User.current.id)%>
|
2015-08-18 11:47:22 +08:00
|
|
|
<ul class="topnav_login_list">
|
|
|
|
<li><a href="javascript:void(0);" class="menuGrey">修改资料</a> </li>
|
|
|
|
<li><a href="javascript:void(0);" class="menuGrey">账号设置</a> </li>
|
|
|
|
<li><a href="javascript:void(0);" class="menuGrey">退出</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="navHomepageNews">
|
2015-08-24 11:37:50 +08:00
|
|
|
<%= link_to image_tag("/images/news_icon_small.png" , :width => "21", :height => "24"), {:controller=> 'users', :action => 'user_messages', id: User.current.id, host: Setting.host_user} %>
|
|
|
|
<% if User.current.count_new_message >0 %>
|
|
|
|
<div class="newsActive"></div>
|
|
|
|
<% end %>
|
2015-08-18 11:47:22 +08:00
|
|
|
<div class="newsActive"></div>
|
2015-08-24 11:37:50 +08:00
|
|
|
</div>
|
2015-08-18 11:47:22 +08:00
|
|
|
</div>
|