2014-12-29 20:46:27 +08:00
|
|
|
|
2014-12-17 17:36:12 +08:00
|
|
|
<div style="margin-left: 15px" xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html">
|
2014-12-05 16:03:41 +08:00
|
|
|
<% if User.current.logged? && User.current.member_of_course?(@course) && @group %>
|
2014-12-04 22:02:10 +08:00
|
|
|
<% if !@canShowCode %>
|
|
|
|
<%= join_in_course_group(@course.course_groups,@group, User.current) %>
|
2014-12-10 18:54:46 +08:00
|
|
|
<% end %>
|
|
|
|
<span style="font-size: 12px; float: left; margin-right: 5px">
|
2014-12-10 17:57:49 +08:00
|
|
|
<%= l(:label_current_group)%>:
|
|
|
|
<%= @group.name %>
|
|
|
|
</span>
|
|
|
|
<% end %>
|
2014-12-22 15:48:35 +08:00
|
|
|
|
2014-12-04 22:02:10 +08:00
|
|
|
|
|
|
|
</div>
|
2014-12-05 23:34:16 +08:00
|
|
|
<div class="cl"></div>
|
2014-06-12 14:57:25 +08:00
|
|
|
<% if members.any? %>
|
2014-12-05 11:27:51 +08:00
|
|
|
<% if @result_count %>
|
2014-12-25 09:02:58 +08:00
|
|
|
<p style="font-size: 18px;">
|
|
|
|
<%= l(:label_search_member_count) %>
|
|
|
|
<%= @result_count %>
|
|
|
|
<%= l(:label_member_people) %>
|
|
|
|
</p>
|
2014-12-05 11:27:51 +08:00
|
|
|
<% end %>
|
2014-12-17 17:36:12 +08:00
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="st_box">
|
2014-12-22 17:02:32 +08:00
|
|
|
<ul class="st_box_top" style="margin-left: 17px;">
|
2014-12-18 09:57:19 +08:00
|
|
|
<% if @subPage_title == l(:label_student_list) %>
|
2014-12-30 14:00:48 +08:00
|
|
|
<li class="ml358"><%= link_to '作业积分', member_score_sort_course_path(:sort_by => (@score_sort_by == "desc" ? "asc" : "desc"), :group_id => (@group ? @group.id : 0)) ,:result => members,method: 'get', remote: true%>
|
|
|
|
<% if @score_sort_by == 'desc' %>
|
|
|
|
<a id="pic" href="#" class= "st_down"></a>
|
|
|
|
<% else %>
|
|
|
|
<a id="pic" href="#" class= "st_up"></a>
|
|
|
|
<% end %>
|
|
|
|
</li>
|
2014-12-25 09:02:58 +08:00
|
|
|
<li class="ml50">
|
|
|
|
<a href="#" >加入时间</a>
|
|
|
|
</li>
|
2014-12-18 09:57:19 +08:00
|
|
|
<% else %>
|
2014-12-25 09:02:58 +08:00
|
|
|
<li class="ml50">
|
2014-12-31 14:41:33 +08:00
|
|
|
</li>
|
2014-12-25 09:02:58 +08:00
|
|
|
<li class="ml50" style="margin-left: 470px">
|
|
|
|
</li>
|
2014-12-31 15:48:45 +08:00
|
|
|
<li class="ml50" style="margin-left: 80%">
|
2014-12-25 09:02:58 +08:00
|
|
|
<a href="#" >加入时间</a>
|
|
|
|
</li>
|
2014-12-18 09:57:19 +08:00
|
|
|
<% end %>
|
|
|
|
|
2014-12-17 17:36:12 +08:00
|
|
|
</ul>
|
2014-12-22 17:02:32 +08:00
|
|
|
<div id="list_detail" style="margin-left: 17px">
|
2014-12-18 18:24:37 +08:00
|
|
|
<% members.each do |member| %>
|
|
|
|
<div class="cl"></div><!--st_box_top end-->
|
|
|
|
<div class="st_boxlist">
|
2014-12-26 14:50:14 +08:00
|
|
|
|
2014-12-25 09:02:58 +08:00
|
|
|
<a href="#" class="st_img" style="float:left;">
|
|
|
|
<%= member.user.nil? ? '' : (image_tag(url_to_avatar(member.user), :width => 40, :height => 40)) %>
|
|
|
|
</a>
|
2014-12-18 18:24:37 +08:00
|
|
|
<ul style="margin-left: 15px">
|
|
|
|
<% if @canShowCode %>
|
|
|
|
<li>
|
|
|
|
<%= l(:label_bidding_user_studentname) %> :
|
|
|
|
<%= link_to member.user.show_name, user_path(member.user) %>
|
2014-12-25 09:02:58 +08:00
|
|
|
</li>
|
|
|
|
</br>
|
2014-12-18 18:24:37 +08:00
|
|
|
<%#= content_tag "li", "#{l(:label_bidding_user_studentname)}#{' : '}"link_to(member.user.show_name, user_path(member.user)) %>
|
|
|
|
<% else %>
|
|
|
|
<%= content_tag "li", link_to(member.user.name, user_path(member.user)) %>
|
|
|
|
<% end %>
|
|
|
|
<!--teacher's code disapeared moified by huang-->
|
2014-06-12 14:57:25 +08:00
|
|
|
|
2014-12-18 18:24:37 +08:00
|
|
|
<% if @canShowCode %>
|
|
|
|
<li>
|
|
|
|
<%= l(:label_bidding_user_studentcode) %> :
|
|
|
|
<%= link_to member.user.user_extensions.student_id, user_path(member.user) %>
|
|
|
|
</li>
|
|
|
|
<%#= content_tag "li", "#{l(:label_bidding_user_studentcode)}#{' : '}#{member.user.user_extensions.student_id}", :style=> "color:#1c9ec7;" %>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
<% if @subPage_title == l(:label_student_list) %>
|
2014-12-31 08:48:14 +08:00
|
|
|
<%= link_to format("%0.2f",member.score.nil? ? 0 : member.score.to_s), {
|
2014-12-18 18:24:37 +08:00
|
|
|
:action => 'show_member_score',
|
|
|
|
:member_id => member.id,
|
|
|
|
:remote => true},
|
|
|
|
:class => 'ml258 c_red', :style => "color:red;" %>
|
2014-12-17 17:36:12 +08:00
|
|
|
|
2014-12-18 18:24:37 +08:00
|
|
|
<% unless member.created_on.nil? %>
|
|
|
|
<%= content_tag "span", "#{format_date(member.created_on)}#{l(:label_member_since)}", :class => "ml65 c_grey" %>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<% unless member.created_on.nil? %>
|
|
|
|
<%= content_tag "span", "#{format_date(member.created_on)}#{l(:label_member_since)}", :class => "ml65 c_grey", :style=>"margin-left:195px" %>
|
|
|
|
<% end %>
|
2014-12-18 09:57:19 +08:00
|
|
|
<% end %>
|
2014-12-17 17:36:12 +08:00
|
|
|
|
2014-12-18 18:24:37 +08:00
|
|
|
|
|
|
|
<%= call_hook(:view_projects_settings_members_table_row, { :course => @course, :member => member}) %>
|
|
|
|
</div>
|
|
|
|
<% end; reset_cycle %>
|
|
|
|
</div>
|
2014-12-17 17:36:12 +08:00
|
|
|
</div>
|
2014-12-25 09:02:58 +08:00
|
|
|
<div class="pagination">
|
2014-12-26 17:31:01 +08:00
|
|
|
<%= pagination_links_full @obj_pages, @obj_count,:per_page_links => false, :remote =>@is_remote %>
|
2014-12-25 09:02:58 +08:00
|
|
|
</div>
|
2014-06-12 14:57:25 +08:00
|
|
|
<% else %>
|
|
|
|
<p class="nodata">
|
|
|
|
<%= l(:label_no_data) %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|