131 lines
6.9 KiB
Plaintext
131 lines
6.9 KiB
Plaintext
<% if @members.count != 0 %>
|
|
<table class="muban_table clearfix mb15 t-center" cellpadding="0" cellspacing="0">
|
|
<thead>
|
|
<tr>
|
|
<th class="table-td-w30">项目名称</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '发布资源', course_statistics_course_path(@course, :tab => 3, :type => 'attach_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "attach_num" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "attach_num" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '提交次数', course_statistics_course_path(@course, :tab => 3, :type => 'changeset_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "changeset_num" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "changeset_num" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w10-5">
|
|
<%= link_to '发布Issue', course_statistics_course_path(@course, :tab => 3, :type => 'issue_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "issue_num" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "issue_num" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w10-5">
|
|
<%= link_to 'Issue回复', course_statistics_course_path(@course, :tab => 3, :type => 'issue_journal_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "issue_journal_num" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "issue_journal_num" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '发布帖子', course_statistics_course_path(@course, :tab => 3, :type => 'board_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "board_num" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "board_num" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '帖子回复', course_statistics_course_path(@course, :tab => 3, :type => 'board_message_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "board_message_num" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "board_message_num" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w9">
|
|
<%= link_to '活跃度', course_statistics_course_path(@course, :tab => 3, :type => 'project_act_score', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "project_act_score" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "project_act_score" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @members.each do |member| %>
|
|
<tr>
|
|
<td>
|
|
<%= link_to member.project.name, project_path(member.project_id), :class => 'new_project_title_width fl ml5' %>
|
|
<span class="<%= member.project.is_public ? 'syllabus_class_open' : 'syllabus_class_private' %> fl ml5 syllabus_class_property"><%= member.project.is_public ? '公开' : '私有' %></span>
|
|
</td>
|
|
<td><%= member.attach_num %></td>
|
|
<td><%= member.changeset_num || 0 %></td>
|
|
<td><%= member.issue_num %></td>
|
|
<td><%= member.issue_journal_num %></td>
|
|
<td><%= member.board_num %></td>
|
|
<td><%= member.board_message_num %></td>
|
|
<td class="pr">
|
|
<span><%= member.project_act_score %></span>
|
|
<div class="st_tips_box_inner undis" style="text-align:left; left: 90px;">
|
|
<em></em>
|
|
<span></span>
|
|
<p>发布资源数*5=<%= member.attach_num %>*5=<%= member.attach_num.to_i * 5 %><br/>
|
|
代码提交数*2=<%= member.changeset_num %>*2=<%= member.changeset_num.to_i * 2 %><br/>
|
|
发布Issue数*1=<%= member.issue_num %>*1=<%= member.issue_num.to_i * 1 %><br/>
|
|
Issue回复数*1=<%= member.issue_journal_num %>*1=<%= member.issue_journal_num.to_i * 1 %><br/>
|
|
发布帖子数*1=<%= member.board_num %>*1=<%= member.board_num.to_i * 1 %><br/>
|
|
回复帖子数*1=<%= member.board_message_num %>*1=<%= member.board_message_num.to_i * 1 %><br/>
|
|
总得分:<%= member.project_act_score %>
|
|
</p>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div style="text-align:center;">
|
|
<div class="pages" style="width:auto; display:inline-block;">
|
|
<ul id="homework_pository_ref_pages">
|
|
<%= pagination_links_full @mem_pages, @members_count, :per_page_links => false, :remote => @is_remote, :flag => true, :is_new => true%>
|
|
</ul>
|
|
<div class="cl"></div>
|
|
</div>
|
|
</div>
|
|
<% else %>
|
|
<div class="icons_tishi"><img src="/images/sy/icons_smile.png" width="110" height="110" alt="" ></div>
|
|
<p class="sy_tab_con_p">没有数据可以显示!</p>
|
|
<% end %>
|
|
|
|
<script>
|
|
$(".muban_table tbody tr").each(function(){
|
|
$(this).mouseenter(function(){
|
|
$(".st_tips_box_inner").hide();
|
|
$(this).children().eq(7).children().eq(1).stop();
|
|
$(this).children().eq(7).children().eq(1).show();
|
|
});
|
|
$(this).mouseleave(function(){
|
|
$(this).children().eq(7).children().eq(1).delay(500).hide(0);
|
|
});
|
|
});
|
|
|
|
$(".st_tips_box_inner").each(function(){
|
|
$(this).mouseover(function(){
|
|
$(this).stop();
|
|
$(this).show();
|
|
});
|
|
$(this).mouseout(function(){
|
|
$(this).delay(500).hide(0);
|
|
});
|
|
});
|
|
</script> |