Fix email bug.(no image error)

This commit is contained in:
BoHung Chiu 2021-10-06 10:44:29 +08:00
parent 4bde53c484
commit 27deea2610
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@
<div class="ep-content-item"> <div class="ep-content-item">
<a class="ep-content-title" href="<%= page + "/" + topic.to_param %>" target="_blank"><%= topic.title %></a> <a class="ep-content-title" href="<%= page + "/" + topic.to_param %>" target="_blank"><%= topic.title %></a>
<div class="ep-img" style="width: 40%; float:left;"> <div class="ep-img" style="width: 40%; float:left;">
<img src="<%= siteurl + "/" + topic.image.thumb.url %>" style="width: 100%;"> <img src="<%= (siteurl + "/" + topic.image.thumb.url rescue nil) %>" style="width: 100%;">
</div> </div>
<div class="ep-con" style="width: 58%; float: right;"> <div class="ep-con" style="width: 58%; float: right;">
<% t = strip_tags(topic.content) %> <% t = strip_tags(topic.content) %>