<% members.each do |member| %>

    <div class="cl"></div><!--st_box_top end-->
    <div class="st_boxlist">
      <% next if member.new_record?  %>

      <a href="javascript:void(0)" class="st_img" style="float:left;"> <%= member.user.nil? ? '' : (image_tag(url_to_avatar(member.user), :width => 40, :height => 40))  %></a>
      <ul style="margin-left: 15px">
        <% if @canShowCode %>
            <% if member.user.show_name == '' && member.user.user_extensions.student_id == '' %>
                <li>
                  <%= l(:label_username)%>
                  <%= link_to(member.user.name, user_path(member.user)) %>
                </li>
            <% else %>
                <% unless member.user.show_name == ''%>
                    <li>
                      <%= l(:label_bidding_user_studentname) %> :
                      <%= link_to member.user.show_name, user_path(member.user) %>
                    </li>
                    </br>
                <% end %>
                <% unless member.user.user_extensions.student_id == '' %>
                    <li>
                      <%= l(:label_bidding_user_studentcode) %> :
                      <%= link_to member.user.user_extensions.student_id, user_path(member.user) %>
                    </li>
                <% end %>
            <% end %>
            <%#= content_tag "li", "#{l(:label_bidding_user_studentname)}#{' : '}"link_to(member.user.show_name, user_path(member.user)) %>
        <% else %>
            <li>
              <%= l(:label_username)%>
              <%= link_to(member.user.name, user_path(member.user)) %>
            </li>
        <% end %>
        <!--teacher's code disapeared  moified by huang-->


      </ul>
      <% if @subPage_title == l(:label_student_list) %>
          <%= link_to format("%0.2f",member.score.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}) %>
    </div>
<% end; reset_cycle %>