实训配置信息显示在实训首页

This commit is contained in:
cxt 2017-08-08 16:30:22 +08:00
parent 1557ad3e9d
commit 559178c791
1 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,11 @@
<% end %>
<% end %>
<div class="cl"></div>
<% unless User.current.manager_of_shixun?(@shixun) %>
<span class="font-12 color-grey fl"><%= @shixun.language %></span>
<span class="font-12 color-grey fl ml20"><%= @shixun.shixun_trainee %></span>
<span class="font-12 color-grey fl ml20"><%= @shixun.shixun_major_courses.blank? ? "" : CourseList.where(:id => @shixun.shixun_major_courses.map(&:course_list_id)).map(&:name).join("、") %></span>
<% end %>
</div>
</div>