modify curse nil error

This commit is contained in:
xianbo 2013-11-12 09:16:25 +08:00
parent 02ff8b8955
commit df628aff9d
1 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@
<!-- added by bai -->
<% @course = Course.find_by_extra(membership.project.identifier)%>
<% unless @course.nil? %>
<% if @course.nil?&&@course.teacher.nil?&&@course.teacher.show_name.nil? %>
<span class="font-lighter" style="float: left"><%= l(:label_main_teacher) %> : <%= link_to(@course.teacher.show_name, user_path(@course.teacher)) %></span>
<span style="float: right; padding-left: 8px" ><%= l(:label_course_term) %> : <%= @course.time %><%= @course.term %></span>
<!-- <span class="font_lighter" style="float: right"><%= l(:label_create_time) %> <%= format_time(membership.created_on) %></span> -->