dev_aliyun
cxt 5 years ago
parent 9682714692
commit 71decd0e75

@ -22,7 +22,7 @@
<% team.members[0, 8].each do |member| %> <% team.members[0, 8].each do |member| %>
<%= link_to image_tag(url_to_avatar(member.user), :width => "20", :height => "20", :class => "radius fl mr4 mt3"), user_path(member.user), :title => member.user.show_name, :target => "_blank", :class => "fl", :alt => "用户头像" %> <%= link_to image_tag(url_to_avatar(member.user), :width => "20", :height => "20", :class => "radius fl mr4 mt3"), user_path(member.user), :title => member.user.show_name, :target => "_blank", :class => "fl", :alt => "用户头像" %>
<% end %> <% end %>
<% if team.members.size > 9 %> <% if team.members.size > 8 %>
<span class="team-p-s mt3">...</span> <span class="team-p-s mt3">...</span>
<% end %> <% end %>
</span> </span>

@ -79,7 +79,7 @@
<% team.team_members.where("user_id != #{team.teacher_id.present? ? team.teacher_id : '-1'}")[0, 8].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 => "用户头像" %> <%= 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 %> <% end %>
<% if team.team_members.size > 9 %> <% if team.team_members.size > 8 %>
<label class="mt5 team-p-s mt3">...</label> <label class="mt5 team-p-s mt3">...</label>
<% end %> <% end %>
</span> </span>

Loading…
Cancel
Save