顶部用户路由

This commit is contained in:
huang 2016-04-25 14:14:26 +08:00
parent c1437bb75b
commit 5b763927cc
2 changed files with 9 additions and 8 deletions

View File

@ -5,17 +5,18 @@
<div class="fl"> <div class="fl">
<ul> <ul>
<li class="navHomepageMenu fl"> <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>
<li class="navHomepageMenu fl"> <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)%> <% if User.current.user_extensions && User.current.user_extensions.identity == 0 && User.current.allowed_to?(:add_course, nil, :global => true)%>
<li class="navHomepageMenu fl"> <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> </li>
<% else %> <% else %>
<li class="navHomepageMenu fl"> <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> </li>
<% end %> <% end %>
<li class="navHomepageMenu fl mr30"> <li class="navHomepageMenu fl mr30">

View File

@ -60,22 +60,22 @@
<div id="fsD1" class="focus"> <div id="fsD1" class="focus">
<div id="D1pic1" class="fPic"> <div id="D1pic1" class="fPic">
<div class="fcon" style="display: none;"> <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> <span class="shadow"><a target="_blank" href="#">国内首个全球卫星导航系统仿真软件平台DBSim测试版上线</a></span>
</div> </div>
<div class="fcon" style="display: none;"> <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> <span class="shadow"><a target="_blank" href="#">国内首个全球卫星导航系统仿真软件平台DBSim测试版上线</a></span>
</div> </div>
<div class="fcon" style="display: none;"> <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> <span class="shadow"><a target="_blank" href="#">国内首个全球卫星导航系统仿真软件平台DBSim测试版上线</a></span>
</div> </div>
<div class="fcon" style="display: none;"> <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> <span class="shadow"><a target="_blank" href="#">国内首个全球卫星导航系统仿真软件平台DBSim测试版上线</a></span>
</div> </div>
</div> </div>