顶部用户路由
This commit is contained in:
parent
c1437bb75b
commit
5b763927cc
|
@ -5,17 +5,18 @@
|
|||
<div class="fl">
|
||||
<ul>
|
||||
<li class="navHomepageMenu fl">
|
||||
<%= link_to "首页",user_activities_path(User.current.id), :class => "c_white f16 db p10", :title => "回到个人首页"%>
|
||||
<%= link_to "首页",user_activities_path(User.current), :class => "c_white f16 db p10", :title => "回到个人首页"%>
|
||||
</li>
|
||||
<li class="navHomepageMenu fl">
|
||||
<a href="<%=url_for(:controller => 'users', :action => 'user_resource', :id => User.current.id, :type => 6) %>" class="c_white f16 db p10">资源库</a></li>
|
||||
<%= link_to "资源库", user_resource_user_path(User.current, :type => 6), :class => "c_white f16 db p10" %>
|
||||
</li>
|
||||
<% if User.current.user_extensions && User.current.user_extensions.identity == 0 && User.current.allowed_to?(:add_course, nil, :global => true)%>
|
||||
<li class="navHomepageMenu fl">
|
||||
<%= link_to "题库", user_homeworks_user_path(User.current.id), :class => "c_white f16 db p10"%>
|
||||
<%= link_to "题库", user_homeworks_user_path(User.current), :class => "c_white f16 db p10"%>
|
||||
</li>
|
||||
<% else %>
|
||||
<li class="navHomepageMenu fl">
|
||||
<%= link_to "我的作业", student_homeworks_user_path(User.current.id), :class => "c_white f16 db p10"%>
|
||||
<%= link_to "我的作业", student_homeworks_user_path(User.current), :class => "c_white f16 db p10"%>
|
||||
</li>
|
||||
<% end %>
|
||||
<li class="navHomepageMenu fl mr30">
|
||||
|
|
|
@ -60,22 +60,22 @@
|
|||
<div id="fsD1" class="focus">
|
||||
<div id="D1pic1" class="fPic">
|
||||
<div class="fcon" style="display: none;">
|
||||
<a target="_blank" href="#"><img src="images/banner/banner01.jpg" alt="" style="opacity: 1; "></a>
|
||||
<a target="_blank" href="#"><img src="/images/banner/banner01.jpg" alt="" style="opacity: 1; "></a>
|
||||
<span class="shadow"><a target="_blank" href="#">国内首个全球卫星导航系统仿真软件平台DBSim测试版上线</a></span>
|
||||
</div>
|
||||
|
||||
<div class="fcon" style="display: none;">
|
||||
<a target="_blank" href="#"><img src="images/banner/banner02.jpg" alt="" style="opacity: 1; "></a>
|
||||
<a target="_blank" href="#"><img src="/images/banner/banner02.jpg" alt="" style="opacity: 1; "></a>
|
||||
<span class="shadow"><a target="_blank" href="#">国内首个全球卫星导航系统仿真软件平台DBSim测试版上线</a></span>
|
||||
</div>
|
||||
|
||||
<div class="fcon" style="display: none;">
|
||||
<a target="_blank" href="#"><img src="images/banner/banner01.jpg" alt="" style="opacity: 1; "></a>
|
||||
<a target="_blank" href="#"><img src="/images/banner/banner01.jpg" alt="" style="opacity: 1; "></a>
|
||||
<span class="shadow"><a target="_blank" href="#">国内首个全球卫星导航系统仿真软件平台DBSim测试版上线</a></span>
|
||||
</div>
|
||||
|
||||
<div class="fcon" style="display: none;">
|
||||
<a target="_blank" href="#"><img src="images/banner/banner02.jpg" alt="" style="opacity: 1; "></a>
|
||||
<a target="_blank" href="#"><img src="/images/banner/banner02.jpg" alt="" style="opacity: 1; "></a>
|
||||
<span class="shadow"><a target="_blank" href="#">国内首个全球卫星导航系统仿真软件平台DBSim测试版上线</a></span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue