2013-10-22 10:02:49 +08:00
|
|
|
|
<% if members.any? %>
|
|
|
|
|
<% 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 %>
|
2013-11-01 15:48:23 +08:00
|
|
|
|
<%= member.user.nil? ? '' : (image_tag(url_to_avatar(member.user), :class => 'avatar')) %>
|
2013-11-19 15:15:54 +08:00
|
|
|
|
<%= content_tag "div", link_to_user(member.user.show_name), :class => "nomargin avatar_name" %>
|
|
|
|
|
<%= l(:label_bidding_user_studentcode) %> :<%= member.user.user_extensions.student_id%> <!-- added by bai 加学号 -->
|
2013-10-22 10:02:49 +08:00
|
|
|
|
<% if @project.project_type == 1 %>
|
2013-11-04 22:00:06 +08:00
|
|
|
|
<div class ="clear avatar_name">
|
2013-10-22 10:02:49 +08:00
|
|
|
|
<p>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<% else%>
|
2013-11-11 09:06:53 +08:00
|
|
|
|
<!-- TODO: member.roles unsafe #nyan -->
|
2013-10-22 10:02:49 +08:00
|
|
|
|
<%= content_tag "div", content_tag("p", member.roles.sort.collect(&:to_s).join(', ')), :class => "clear avatar_name" %>
|
|
|
|
|
<div class="clear avatar_user">
|
|
|
|
|
<p>
|
2013-11-06 16:43:07 +08:00
|
|
|
|
<%= l(:label_user_for_project_grade) %>: <span style="color:#ec6300"><%= UserGrade.find_by_user_id_and_project_id(member[:user_id], @project.id).grade %></span>
|
2013-10-22 10:02:49 +08:00
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<%= call_hook(:view_projects_settings_members_table_row, { :project => @project, :member => member}) %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end; reset_cycle %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<p class="nodata">
|
|
|
|
|
<%= l(:label_no_data) %>
|
|
|
|
|
</p>
|
|
|
|
|
<% end %>
|