Update emailer format

This commit is contained in:
wmcheng 2019-09-02 12:34:07 +08:00
parent 9ae9f79e8e
commit 9418068a1b
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
<% paper = @data["paper"] %>
<% page = @data["page"] %>
<% siteurl = @data["siteurl"] %>
<!DOCTYPE html>
<html>
<head>
@ -159,8 +160,9 @@
<% paper.epaper_topics.desc(:created_at).each do |topic| %>
<div class="ep-content-item">
<a class="ep-content-title" href="<%= page + "/" + topic.to_param %>" target="_blank"><%= topic.title %></a>
<img src="<%= siteurl + "/" + topic.image.thumb.url %>">
<% t = strip_tags(topic.content) %>
<p class="ep-content-text"><%= t[0..100] %></p>
<%= topic.description %>
<a class="ep-content-more" href="<%= page + "/" + topic.to_param %>" target="_blank">more</a>
</div>
<% end %>