实训课程“教学团队”排序功能优化

dev_haigong
杨树明 6 years ago
parent d53fa773dc
commit ff98ef9463

@ -1,14 +1,45 @@
<p class="font-16 clearfix">教学团队</p> <p class="font-16 clearfix">教学团队</p>
<% @subject.subject_members.each do |member| %> <% @subject.subject_members.each do |member| %>
<% if member.user %> <% if member.user %>
<div class="teacherTeamItem clearfix df"> <div class="teacherTeamItem clearfix">
<a href="<%= user_path(member.user) %>" target="_blank" class="fl">
<%= image_tag(url_to_avatar(member.user), :width =>"80", :height => "80", :class => "radius", :alt=>"头像") %>
</a> <p class="clearfix title-line">
<div class="fl ml15 flex1">
<a href="<%= user_path(member.user) %>" target="_blank" class="fl">
<%= image_tag(url_to_avatar(member.user), :width =>"80", :height => "80", :class => "radius", :alt=>"头像") %>
</a>
<span class="font-18 font-bd"></span>
<span class="fr">
<a class="fl mr20 mt4" data-tip-down="删除" onclick="delete_confirm_box_2('确定要删除该阶段吗?');">
<img src="/images/educoder/icon/del.svg" class="fl mt4 ml4">
</a>
<a data-method="POST" class="fl ring-op-green mr25 mt7" data-remote="true">
<img src="/images/educoder/icon/moveup.svg" data-tip-down="向上移动" class="fl mt2 ml4">
</a>
<a data-method="POST" class="fl ring-op-green mr25 mt7" data-remote="true">
<img src="/images/educoder/icon/movedown.svg" data-tip-down="向下移动" class="fl mt2 ml4">
</a>
<a data-tip-down="编辑" class="ring-green fl mt7">
<img src="/images/educoder/icon/edit.svg" class="fl mt3 ml2">
</a>
</span>
</p>
<div class=" ml15">
<p class="mb10 mt5"><%= member.user.try(:show_name) %></p> <p class="mb10 mt5"><%= member.user.try(:show_name) %></p>
<div class="clearfix ml3"> <div class="clearfix ml3">
<p class="color-grey-9 font-12 fl"> <p class="color-grey-9 font-12">
<!-- <span class="mr10"><%#= member.user.school_name %></span>--> <!-- <span class="mr10"><%#= member.user.school_name %></span>-->
<span><%= member.user.identity == "学生" ? "" : member.user.identity %></span> <span><%= member.user.identity == "学生" ? "" : member.user.identity %></span>
</p> </p>

Loading…
Cancel
Save