45 lines
1.8 KiB
Plaintext
45 lines
1.8 KiB
Plaintext
<div >
|
|
<% if User.current.logged? && User.current.member_of_course?(@course) && @group %>
|
|
<% if !@canShowCode %>
|
|
<%= join_in_course_group(@course.course_groups,@group, User.current) %>
|
|
<% end %>
|
|
<span style="font-size: 18px"><%= @group.name %><%= @subPage_title %></span>
|
|
|
|
<% end %>
|
|
</div>
|
|
|
|
<% if members.any? %>
|
|
<% if @result_count %>
|
|
<p style="font-size: 18px;"><%= l(:label_search_member_count) %><%= @result_count %><%= l(:label_member_people) %></p>
|
|
<% end %>
|
|
<% members.each do |member| %>
|
|
<div class="well">
|
|
<% next if member.new_record? %>
|
|
<% unless member.created_on.nil? %>
|
|
<%= content_tag "p", "#{format_date(member.created_on)}#{l(:label_member_since)}", :class => "float_right member_since" %>
|
|
<% end %>
|
|
<%= member.user.nil? ? '' : (image_tag(url_to_avatar(member.user), :class => 'avatar')) %>
|
|
<% if @canShowCode %>
|
|
<%= content_tag "div", link_to(member.user.show_name, user_path(member.user)), :class => "nomargin avatar_name" %>
|
|
<% else %>
|
|
<%= content_tag "div", link_to(member.user.name, user_path(member.user)), :class => "nomargin avatar_name" %>
|
|
<% end %>
|
|
<!--teacher's code disapeared moified by huang-->
|
|
|
|
<% if @canShowCode %>
|
|
<%= content_tag "p", "#{l(:label_bidding_user_studentcode)}#{' : '}#{member.user.user_extensions.student_id}", :class => "nomargin avatar_name" %>
|
|
<% end %>
|
|
<div class ="clear avatar_name">
|
|
<p>
|
|
</p>
|
|
</div>
|
|
|
|
<%= call_hook(:view_projects_settings_members_table_row, { :course => @course, :member => member}) %>
|
|
</div>
|
|
<% end; reset_cycle %>
|
|
<div class="pagination"><%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false %></div>
|
|
<% else %>
|
|
<p class="nodata">
|
|
<%= l(:label_no_data) %>
|
|
</p>
|
|
<% end %> |