把课程列表中的学校信息修改为,显示老师身份中的学校信息

This commit is contained in:
yanxd 2014-05-09 14:27:08 +08:00
parent c2284deaf7
commit 845186a600
1 changed files with 3 additions and 3 deletions

View File

@ -17,9 +17,9 @@
<% @admin = @project.project_infos%> <% @admin = @project.project_infos%>
<%if @admin&&@admin.first&&@admin.first.user&&@admin.first.user.user_extensions%> <%if @admin&&@admin.first&&@admin.first.user&&@admin.first.user.user_extensions%>
<!-- <%= @admin.first.user.user_extensions.occupation %> --> <!-- <%= @admin.first.user.user_extensions.occupation %> -->
<% unless @project.course_extra.school.nil? %> <%# unless @project.course_extra.school.nil? %>
<%= @project.course_extra.school.name %> <%= @project.course_extra.teacher.user_extensions.school.try(:name) %>
<% end %> <%# end %>
<% end %> <% end %>
</p> </p>
<p > <p >