2016-12-07 09:00:33 +08:00
|
|
|
<% message_alls.each do |ma| %>
|
|
|
|
<%# 系统消息 %>
|
|
|
|
<%= render :partial => 'users/user_message_system', :locals => {:ma => ma} %>
|
|
|
|
|
|
|
|
<%= render :partial => 'users/user_at_message', :locals => {:ma => ma} %>
|
|
|
|
|
|
|
|
<%# 课程消息 %>
|
|
|
|
<%= render :partial => 'users/user_message_course', :locals => {:ma => ma} %>
|
|
|
|
|
|
|
|
<!--项目消息-->
|
|
|
|
<%= render :partial => 'users/user_message_forge', :locals => {:ma => ma} %>
|
|
|
|
|
2016-12-22 16:02:36 +08:00
|
|
|
<%# 竞赛消息 %>
|
|
|
|
<%= render :partial => 'users/user_message_contest', :locals => {:ma => ma} %>
|
|
|
|
|
2016-12-07 09:00:33 +08:00
|
|
|
<!--公共贴吧-->
|
|
|
|
<%= render :partial => 'users/user_message_forum', :locals => {:ma => ma} %>
|
|
|
|
|
|
|
|
<!--用户留言-->
|
|
|
|
<%= render :partial => 'users/user_message_userfeedaback', :locals => {:ma => ma} %>
|
|
|
|
|
|
|
|
<%= render :partial => 'users/user_message_org', :locals => {:ma => ma} %>
|
|
|
|
|
|
|
|
<%# 申请类消息 %>
|
|
|
|
<%= render :partial => 'users/user_message_applied', :locals => {:ma => ma} %>
|
|
|
|
<% end %>
|
|
|
|
|
2016-12-07 15:13:51 +08:00
|
|
|
<ul class="pages" style="width: auto;display: table;margin-left: auto;margin-right: auto; padding-top: 10px">
|
2016-12-16 14:03:01 +08:00
|
|
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => true, :flag => true, :is_new => true %>
|
2016-12-17 15:34:26 +08:00
|
|
|
</ul>
|
|
|
|
<script>
|
|
|
|
$(function(){
|
|
|
|
$(".messageInformationContents").each(function(){
|
|
|
|
var parentWidth = $(this).parent().width();
|
|
|
|
var eq0Width = $(this).parent().children().eq(0).width();
|
|
|
|
var eq1Width = $(this).parent().children().eq(1).width();
|
|
|
|
var classWidth = parentWidth - eq0Width - eq1Width - 20;
|
|
|
|
$(this).css("max-width",classWidth + "px");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|