small fix
This commit is contained in:
parent
c5c92d67f0
commit
edf6e6e832
|
@ -9,7 +9,7 @@
|
|||
<tbody>
|
||||
<% @hpsclass.hps_lectures.each do |lecture| %>
|
||||
<tr>
|
||||
<% if !lecture.lecture_pic.nil? && !lecture.lecture_pic.url.empty? %>
|
||||
<% if !lecture.lecture_pic.nil? && !lecture.lecture_pic.url.nil? %>
|
||||
<td><img width="150px" src="<%= lecture.lecture_pic.thumb.url %>" /></td>
|
||||
<% else %>
|
||||
<td><img src="http://www.placehold.it/150x150/EFEFEF/AAAAAA" width="150px"></td>
|
||||
|
|
Loading…
Reference in New Issue