socialforge/app/views/users/show.html.erb

58 lines
3.3 KiB
Plaintext
Raw Normal View History

2015-08-25 20:08:52 +08:00
<script type="text/javascript">
var scrollHandler = function(){
if ($(window).scrollTop() == $(document).height() - $(window).height()) {
$.get(
'<%= user_activities_path(@user.id)%>',
2015-08-26 08:51:39 +08:00
{ page : $("#show_more_activities").val(),
type: $("#user_activities_type").val()},
2015-08-25 20:08:52 +08:00
function (data) {
}
);
}
};
$(window).scroll(scrollHandler);
</script>
2015-08-26 08:51:39 +08:00
<input type="hidden" value="<%= @type%>" id="user_activities_type">
2015-08-18 11:47:22 +08:00
<div class="resources">
<div class="homepageRightBanner">
<div class="NewsBannerName">最新动态</div>
<ul class="resourcesSelect">
<li class="resourcesSelected"><a href="javascript:void(0);" class="resourcesIcon"></a>
2015-08-19 15:18:12 +08:00
<ul class="homepagePostType">
<li>
<ul class="homepagePostTypeHomework fl">
<li class="f14">课程动态</li>
2015-08-25 19:24:23 +08:00
<li><%= link_to "作业动态", {:controller => "users", :action => "show", :type => "course_homework"}, :class => "homepagePostTypeAssignment postTypeGrey"%>
<!--<a href="javascript:void(0);" class="homepagePostTypeAssignment postTypeGrey">作业动态</a>--></li>
2015-08-26 15:24:57 +08:00
<li><%= link_to "通知动态", {:controller => "users", :action => "show", :type => "course_news"}, :class => "homepagePostTypeNotice postTypeGrey"%>
2015-08-25 19:24:23 +08:00
<!--<li><a href="javascript:void(0);" class="homepagePostTypeNotice postTypeGrey">通知动态</a></li>-->
2015-08-26 15:24:57 +08:00
<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"%>
<!--<li><a href="javascript:void(0);" class="homepagePostTypeForum postTypeGrey">论坛动态</a></li>-->
2015-08-20 17:24:34 +08:00
<!--<li><a href="javascript:void(0);" class="homepagePostTypeQuiz postTypeGrey">问卷动态</a></li>-->
2015-08-19 15:18:12 +08:00
</ul>
</li>
<li>
<ul class="homepagePostTypeProject fl">
<li class="f14">项目动态</li>
2015-08-26 15:24:57 +08:00
<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"%>
2015-08-25 19:24:23 +08:00
<!--<li><a href="javascript:void(0);" class="homepagePostTypeQuestion postTypeGrey">问题动态</a></li>
<li><a href="javascript:void(0);" class="homepagePostTypeForum postTypeGrey">论坛动态</a></li>-->
2015-08-19 15:18:12 +08:00
</ul>
</li>
2015-08-26 15:24:57 +08:00
<li>
<ul class="homepagePostTypeProject fl">
<li class="f14">更多</li>
<li><%= link_to "全部动态", {:controller => "users", :action => "show", :type => nil}, :class =>"homepagePostTypeAssignment postTypeGrey"%>
</ul>
</li>
2015-08-18 11:47:22 +08:00
</ul>
</li>
</ul>
</div>
2015-08-21 16:07:18 +08:00
</div>
2015-08-25 19:24:23 +08:00
2015-08-25 20:08:52 +08:00
<%= render :partial => 'users/user_activities', :locals => {:user_activities => @user_activities,:page => @page} %>