modify curse nil error
This commit is contained in:
parent
02ff8b8955
commit
df628aff9d
|
@ -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> -->
|
||||
|
|
Loading…
Reference in New Issue