From e838ad96bc6bb51d2402ccd9a4b09aac4fb05db4 Mon Sep 17 00:00:00 2001 From: chihyux Date: Sat, 20 Jun 2020 13:43:43 +0800 Subject: [PATCH] email template style & show template style --- .../admin/e_paper_criterias/emailer.html.erb | 6 +++- modules/e_paper/show.html.erb | 30 +++++++++++-------- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/app/views/admin/e_paper_criterias/emailer.html.erb b/app/views/admin/e_paper_criterias/emailer.html.erb index 2700a09..dcfacdc 100644 --- a/app/views/admin/e_paper_criterias/emailer.html.erb +++ b/app/views/admin/e_paper_criterias/emailer.html.erb @@ -160,10 +160,14 @@ <% paper.epaper_topics.desc(:created_at).each do |topic| %>
" target="_blank"><%= topic.title %> - "> +
+ " style="width: 100%;"> +
+
<% t = strip_tags(topic.content) %> <%= topic.description %> " target="_blank">more +
<% end %> diff --git a/modules/e_paper/show.html.erb b/modules/e_paper/show.html.erb index 6073534..353ee4b 100644 --- a/modules/e_paper/show.html.erb +++ b/modules/e_paper/show.html.erb @@ -1,16 +1,22 @@ -
- {{member_name}} - - {{member_autobiography}} +

{{title}}

-
- {{category_title}}
- {{criteria_title}} +
+
+
+
+

{{member_name}}

+ {{member_autobiography}} +
+
+
+ {{category_title}}
+ {{criteria_title}} + {{publish_date}}
+
-
- {{publish_date}}
- +
+ + {{content}}
-
-
{{content}}