diff --git a/app/views/admin/e_paper_criterias/emailer.html.erb b/app/views/admin/e_paper_criterias/emailer.html.erb index 0c52fdd..2ff68ed 100644 --- a/app/views/admin/e_paper_criterias/emailer.html.erb +++ b/app/views/admin/e_paper_criterias/emailer.html.erb @@ -230,9 +230,18 @@ <% topics = (papers_data_hash["topic_ids"].nil? ? papers_data_hash["topics"] : EPaperTopic.where(:id.in=>papers_data_hash["topic_ids"]).to_a) %> <% topics.each do |topic| %>
+ <% + if topic.image.present? + topic_img_url = siteurl + topic.image.thumb.url + else + topic_img_url = nil + end + %> " target="_blank"><%= topic.title %>
- + <% if topic_img_url %> + + <% end %>
<%= fix_local_url(siteurl, topic.description) %>