|
|
@ -1,5 +1,8 @@
|
|
|
|
<script src="/javascripts/i18n/jquery.ui.datepicker-zh-CN.js" type="text/javascript"></script>
|
|
|
|
<script src="/javascripts/i18n/jquery.ui.datepicker-zh-CN.js" type="text/javascript"></script>
|
|
|
|
<input type="hidden" value="<%= @type%>" name="type" id="user_activities_type">
|
|
|
|
<input type="hidden" value="<%= @type%>" name="type" id="user_activities_type">
|
|
|
|
|
|
|
|
<% hidden_unproject = hidden_unproject_infos %>
|
|
|
|
|
|
|
|
<% current_isuser = (@user == User.current) %>
|
|
|
|
|
|
|
|
<%# cache [:homepageRightBanner,hidden_unproject.to_s+"-"+current_isuser.to_s] do %>
|
|
|
|
<div class="homepageRightBanner">
|
|
|
|
<div class="homepageRightBanner">
|
|
|
|
<div class="NewsBannerName">最新动态</div>
|
|
|
|
<div class="NewsBannerName">最新动态</div>
|
|
|
|
<ul class="resourcesSelect">
|
|
|
|
<ul class="resourcesSelect">
|
|
|
@ -7,7 +10,7 @@
|
|
|
|
<ul class="homepagePostType">
|
|
|
|
<ul class="homepagePostType">
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<ul class="homepagePostTypeHomework fl">
|
|
|
|
<ul class="homepagePostTypeHomework fl">
|
|
|
|
<% if hidden_unproject_infos %>
|
|
|
|
<% if hidden_unproject %>
|
|
|
|
<li class="f14">课程动态</li>
|
|
|
|
<li class="f14">课程动态</li>
|
|
|
|
<li><%= link_to "作业动态", {:controller => "users", :action => "show", :type => "course_homework"}, :class => "homepagePostTypeAssignment postTypeGrey"%>
|
|
|
|
<li><%= link_to "作业动态", {:controller => "users", :action => "show", :type => "course_homework"}, :class => "homepagePostTypeAssignment postTypeGrey"%>
|
|
|
|
<!--<a href="javascript:void(0);" class="homepagePostTypeAssignment postTypeGrey">作业动态</a>--></li>
|
|
|
|
<!--<a href="javascript:void(0);" class="homepagePostTypeAssignment postTypeGrey">作业动态</a>--></li>
|
|
|
@ -34,7 +37,7 @@
|
|
|
|
<ul class="homepagePostTypeProject fl">
|
|
|
|
<ul class="homepagePostTypeProject fl">
|
|
|
|
<li class="f14">更多</li>
|
|
|
|
<li class="f14">更多</li>
|
|
|
|
<li class="mt-4"><%= link_to "个人留言", {:controller => "users", :action => "show", :type => "user_journals"}, :class =>"homepagePostTypeMessage postTypeGrey"%>
|
|
|
|
<li class="mt-4"><%= link_to "个人留言", {:controller => "users", :action => "show", :type => "user_journals"}, :class =>"homepagePostTypeMessage postTypeGrey"%>
|
|
|
|
<li class="mt-4"><%= link_to @user == User.current ? "我的动态" : "他的动态", {:controller => "users", :action => "show", :type => "current_user"}, :class =>"homepagePostTypeMine postTypeGrey"%>
|
|
|
|
<li class="mt-4"><%= link_to current_isuser ? "我的动态" : "他的动态", {:controller => "users", :action => "show", :type => "current_user"}, :class =>"homepagePostTypeMine postTypeGrey"%>
|
|
|
|
<li class="mt-4"><%= link_to "全部动态", {:controller => "users", :action => "show", :type => "all"}, :class =>"homepagePostTypeAll postTypeGrey"%>
|
|
|
|
<li class="mt-4"><%= link_to "全部动态", {:controller => "users", :action => "show", :type => "all"}, :class =>"homepagePostTypeAll postTypeGrey"%>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
@ -42,7 +45,7 @@
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%# end %>
|
|
|
|
<!--显示个人主页-->
|
|
|
|
<!--显示个人主页-->
|
|
|
|
<% if @user.blog.homepage_id and BlogComment.where("id=?", @user.blog.homepage_id).count > 0 %>
|
|
|
|
<% if @user.blog.homepage_id and BlogComment.where("id=?", @user.blog.homepage_id).count > 0 %>
|
|
|
|
<% homepage = BlogComment.find(@user.blog.homepage_id) %>
|
|
|
|
<% homepage = BlogComment.find(@user.blog.homepage_id) %>
|
|
|
|