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