<% if User.current.logged? && User.current.member_of_course?(@course) && @group %> <% if !@canShowCode %> <%= join_in_course_group(@course.course_groups,@group, User.current) %> <% end %> <%= l(:label_current_group)%>:  <%= @group.name %> <% end %> <% if @subPage_title && @subPage_title == l(:label_student_list)%> <%= form_tag( searchmembers_course_path(@course), method: 'get',:class => "f_l",:style => "margin-left: 5px; ",:remote=>true) do %> <%= text_field_tag 'name', params[:name], name: "name", :class => 'f_1', :style => "height:15px"%> <% if @group %> <%= hidden_field "search_group_id", params[:search_group_id],:value => "#{@group.id}", name: 'search_group_id' %> <%= submit_tag l(:label_search_member_in_group), :name => "ingroup",:class => "f_2"%> <% end %> <%= submit_tag l(:label_search_member_in_course), :name => 'incourse',:onclick => "checkclass('group_name_0')",:class => "f_2"%> <%#= link_to l(:label_search),'' , :class => 'f_2' %> <% end %> <% end %>
<% if members.any? %> <% if @result_count %>

<%= l(:label_search_member_count) %><%= @result_count %><%= l(:label_member_people) %>

<% end %>
<% members.each do |member| %>
<% next if member.new_record? %> <%= member.user.nil? ? '' : (image_tag(url_to_avatar(member.user), :width => 40, :height => 40)) %>
    <% if @canShowCode %>
  • <%= l(:label_bidding_user_studentname) %> : <%= link_to member.user.show_name, user_path(member.user) %>

  • <%#= 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 %> <% if @canShowCode %>
  • <%= l(:label_bidding_user_studentcode) %> : <%= link_to member.user.user_extensions.student_id, user_path(member.user) %>
  • <%#= content_tag "li", "#{l(:label_bidding_user_studentcode)}#{' : '}#{member.user.user_extensions.student_id}", :style=> "color:#1c9ec7;" %> <% end %>
<% if @subPage_title == l(:label_student_list) %> <%= link_to member.student_homework_score(@member_scores)[1].to_s, { :action => 'show_member_score', :member_id => member.id, :remote => true}, :class => 'ml258 c_red', :style => "color:red;" %> <% 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 %> <% end %> <%= call_hook(:view_projects_settings_members_table_row, { :course => @course, :member => member}) %>
<% end; reset_cycle %>
<% else %>

<%= l(:label_no_data) %>

<% end %>