84 lines
3.1 KiB
Plaintext
84 lines
3.1 KiB
Plaintext
<div class="navHomepage">
|
|
<div class="navHomepageLogo fl">
|
|
<%=link_to image_tag("../images/logo.png",width:"51px", height: "45px",class: "mt3"), user_activities_path(User.current.id)%>
|
|
</div>
|
|
<div class="fl">
|
|
<ul>
|
|
<li class="navHomepageMenu fl">
|
|
<%= link_to "首页",user_activities_path(User.current.id), :class => "homepageWhite f16"%>
|
|
</li>
|
|
<li class="navHomepageMenu fl">
|
|
<a href="<%=url_for(:controller => 'users', :action => 'user_resource',:id=>User.current.id,:type=>1)%>" class="homepageWhite f16">资源库</a></li>
|
|
<li class="navHomepageMenu fl">
|
|
<%= link_to "作业", user_homeworks_user_path(User.current.id), :class => "homepageWhite f16"%>
|
|
</li>
|
|
<li class="navHomepageMenu fl">
|
|
<a href="http://forge.trustie.net/forums/1/memos/1168" class="homepageWhite f16">帮助中心</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="fl" id="navHomepageSearch">
|
|
<form class="navHomepageSearchBox">
|
|
<input type="text" name="navHomepageSearch" class="navHomepageSearchInput" />
|
|
<a href="javascript:void(0);" class="homepageSearchIcon"></a>
|
|
</form>
|
|
|
|
<div class="navSearchTypeBox" id="navHomepageSearchType">
|
|
<div class="fl mr15 mt5">
|
|
<input type="radio" value="课程" name="navSearchType" checked/>
|
|
课程
|
|
</div>
|
|
<div class="fl mr15 mt5">
|
|
<input type="radio" value="项目" name="navSearchType" />
|
|
项目
|
|
</div>
|
|
<div class="fl mr15 mt5">
|
|
<input type="radio" value="用户" name="navSearchType" />
|
|
用户
|
|
</div>
|
|
<div id="navSearchAlert" class="fr mr10">
|
|
<span class="c_red">请选择搜索类型</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="navHomepageProfile">
|
|
<ul>
|
|
<li class="homepageProfileMenuIcon">
|
|
<%= 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)%>
|
|
<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>
|
|
<%= link_to "退出",signout_path,:class => "menuGrey",:method => "post"%>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="navHomepageNews">
|
|
<%= 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 %>
|
|
<div class="newsActive"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
//搜索相关
|
|
$("#navHomepageSearch").mouseover(function(){
|
|
$("#navHomepageSearchType").show();
|
|
}).mouseout(function(){
|
|
$("#navHomepageSearchType").hide();
|
|
});
|
|
|
|
function signout(){
|
|
$.post(
|
|
'<%= signout_path%>',
|
|
{}
|
|
);
|
|
}
|
|
</script>
|