dev_bj
SylorHuang 5 years ago
parent f90a1560f3
commit 0b1dc0e603

@ -14,11 +14,11 @@
<% end %> <% end %>
<div class="substance"> <div class="substance">
<p class="subName font-16"> <p class="subName font-16">
<span><%= object.name %></span> <span><%= object&.name %></span>
</p> </p>
<span><%= image_tag(url_to_avatar(object.teacher), :width => "60", :height => "60", :class => "radius mt15", :alt => "用户") %></span> <span><%= image_tag(url_to_avatar(object&.teacher), :width => "60", :height => "60", :class => "radius mt15", :alt => "用户") %></span>
<p class="font-14 mt10"><span><%= object.teacher.show_name %></span></p> <p class="font-14 mt10"><span><%= object&.teacher.&show_name %></span></p>
<p class="font-16 mb15 task-hide"><span class="color-grey-98"><%= object.teacher.school_name == "" ? "--" : object.teacher.school_name %></span></p> <p class="font-16 mb15 task-hide"><span class="color-grey-98"><%= object&.teacher&.school_name.present? ? "--" : object&.teacher&.school_name %></span></p>
</div> </div>
<div class="edu-txt-center course-bottom"> <div class="edu-txt-center course-bottom">
<div class="inline color-grey-B4"> <div class="inline color-grey-B4">

Loading…
Cancel
Save