|
|
|
@ -76,10 +76,10 @@
|
|
|
|
|
<% if team.teacher_id.present? %>
|
|
|
|
|
<a href="<%= user_path(team.teacher) %>" class="fl" target="_blank" data-tip-down="指导老师:<%= team.teacher.show_name %>"><%= image_tag(url_to_avatar(team.teacher), :width => "26", :height => "26", :class => "radius fl mr4") %></a>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% team.team_members.where("user_id != #{team.teacher_id.present? ? team.teacher_id : '-1'}")[0, 9].each do |member| %>
|
|
|
|
|
<% team.team_members.where("user_id != #{team.teacher_id.present? ? team.teacher_id : '-1'}")[0, 8].each do |member| %>
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(member.user), :width => "20", :height => "20", :class => "radius fl mr5 mt3"), user_path(member.user), :title => member.user.show_name, :target => "_blank", :class => "fl", :alt => "用户头像" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if team.team_members.size > 9 %>
|
|
|
|
|
<% if team.team_members.size > 8 %>
|
|
|
|
|
<label class="mt5 team-p-s mt3">...</label>
|
|
|
|
|
<% end %>
|
|
|
|
|
</span>
|
|
|
|
|