From 9418068a1b80cc462c39617361648b259d499f85 Mon Sep 17 00:00:00 2001 From: wmcheng Date: Mon, 2 Sep 2019 12:34:07 +0800 Subject: [PATCH] Update emailer format --- app/views/admin/e_paper_criterias/emailer.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/admin/e_paper_criterias/emailer.html.erb b/app/views/admin/e_paper_criterias/emailer.html.erb index 6c45408..2700a09 100644 --- a/app/views/admin/e_paper_criterias/emailer.html.erb +++ b/app/views/admin/e_paper_criterias/emailer.html.erb @@ -1,5 +1,6 @@ <% paper = @data["paper"] %> <% page = @data["page"] %> +<% siteurl = @data["siteurl"] %> @@ -159,8 +160,9 @@ <% paper.epaper_topics.desc(:created_at).each do |topic| %>
" target="_blank"><%= topic.title %> + "> <% t = strip_tags(topic.content) %> -

<%= t[0..100] %>

+ <%= topic.description %> " target="_blank">more
<% end %>