2015-10-28 10:17:45 +08:00
|
|
|
<script src="/javascripts/i18n/jquery.ui.datepicker-zh-CN.js" type="text/javascript"></script>
|
2015-08-29 16:39:37 +08:00
|
|
|
<input type="hidden" value="<%= @type%>" name="type" id="user_activities_type">
|
2015-09-10 10:26:16 +08:00
|
|
|
<div class="homepageRightBanner">
|
2015-08-18 11:47:22 +08:00
|
|
|
<div class="NewsBannerName">最新动态</div>
|
|
|
|
<ul class="resourcesSelect">
|
2015-09-10 10:26:16 +08:00
|
|
|
<li class="resourcesSelected"><a href="javascript:void(0);" class="resourcesIcon"></a>
|
|
|
|
<ul class="homepagePostType">
|
2016-04-24 14:23:08 +08:00
|
|
|
<li>
|
|
|
|
<ul class="homepagePostTypeHomework fl">
|
|
|
|
<% hidden_courses = Setting.find_by_name("hidden_courses") %>
|
|
|
|
<% unvisiable = hidden_courses && hidden_courses.value == "1"%>
|
|
|
|
<% if !unvisiable %>
|
|
|
|
<li class="f14">课程动态</li>
|
|
|
|
<li><%= link_to "作业动态", {:controller => "users", :action => "show", :type => "course_homework"}, :class => "homepagePostTypeAssignment postTypeGrey"%>
|
|
|
|
<!--<a href="javascript:void(0);" class="homepagePostTypeAssignment postTypeGrey">作业动态</a>--></li>
|
|
|
|
<li><%= link_to "通知动态", {:controller => "users", :action => "show", :type => "course_news"}, :class => "homepagePostTypeNotice postTypeGrey"%>
|
|
|
|
<!--<li><a href="javascript:void(0);" class="homepagePostTypeNotice postTypeGrey">通知动态</a></li>-->
|
|
|
|
<li><%= link_to "论坛动态", {:controller => "users", :action => "show", :type => "course_message"}, :class => "homepagePostTypeForum postTypeGrey"%>
|
|
|
|
<li><%= link_to "问卷动态", {:controller => "users", :action => "show", :type => "course_poll"}, :class => "homepagePostTypeQuiz postTypeGrey"%>
|
2016-07-01 11:11:53 +08:00
|
|
|
<li><%= link_to "班级留言", {:controller => "users", :action => "show", :type => "course_journals"}, :class =>"homepagePostTypeMessage postTypeGrey"%>
|
2016-04-24 14:23:08 +08:00
|
|
|
<!--<li><a href="javascript:void(0);" class="homepagePostTypeForum postTypeGrey">论坛动态</a></li>-->
|
|
|
|
<!--<li><a href="javascript:void(0);" class="homepagePostTypeQuiz postTypeGrey">问卷动态</a></li>-->
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2015-09-10 10:26:16 +08:00
|
|
|
<li>
|
|
|
|
<ul class="homepagePostTypeProject fl">
|
|
|
|
<li class="f14">项目动态</li>
|
|
|
|
<li><%= link_to "问题动态", {:controller => "users", :action => "show", :type => "project_issue"}, :class => "homepagePostTypeQuestion postTypeGrey"%>
|
|
|
|
<li><%= link_to "论坛动态", {:controller => "users", :action => "show", :type => "project_message"}, :class => "homepagePostTypeForum postTypeGrey"%>
|
|
|
|
<!--<li><a href="javascript:void(0);" class="homepagePostTypeQuestion postTypeGrey">问题动态</a></li>
|
|
|
|
<li><a href="javascript:void(0);" class="homepagePostTypeForum postTypeGrey">论坛动态</a></li>-->
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<ul class="homepagePostTypeProject fl">
|
|
|
|
<li class="f14">更多</li>
|
2016-03-22 16:44:53 +08:00
|
|
|
<li class="mt-4"><%= link_to "个人留言", {:controller => "users", :action => "show", :type => "user_journals"}, :class =>"homepagePostTypeMessage postTypeGrey"%>
|
2016-07-21 10:50:53 +08:00
|
|
|
<li class="mt-4"><%= link_to @user == User.current ? "我的动态" : "他的动态", {:controller => "users", :action => "show", :type => "current_user"}, :class =>"homepagePostTypeMine postTypeGrey"%>
|
2015-09-10 10:26:16 +08:00
|
|
|
<li class="mt-4"><%= link_to "全部动态", {:controller => "users", :action => "show", :type => nil}, :class =>"homepagePostTypeAll postTypeGrey"%>
|
2015-08-18 11:47:22 +08:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2015-09-10 10:26:16 +08:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2015-08-25 19:24:23 +08:00
|
|
|
|
2016-01-11 16:56:57 +08:00
|
|
|
<!--显示个人主页-->
|
|
|
|
<% if @user.blog.homepage_id and BlogComment.where("id=?", @user.blog.homepage_id).count > 0 %>
|
|
|
|
<% homepage = BlogComment.find(@user.blog.homepage_id) %>
|
|
|
|
<%= render :partial => 'blogs/homepage', :locals => {:activity => homepage, :user_activity_id => homepage.id} %>
|
|
|
|
<% end %>
|
2016-03-17 14:13:29 +08:00
|
|
|
<%= render :partial => 'users/user_activities', :locals => {:user_activities => @user_activities,:page => 0,:type => @type, :user_id => (@user.type == "AnonymousUser" ? User.current.id : @user.id)} %>
|