From cfa596a3e7bc9a303b3945146ce278bf767e4abf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Wed, 11 Sep 2024 08:21:27 +0800 Subject: [PATCH] Hide paper title when no title. --- .../admin/e_paper_criterias/emailer.html.erb | 30 +++++++++++-------- 1 file changed, 17 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 0290fd3..b02694e 100644 --- a/app/views/admin/e_paper_criterias/emailer.html.erb +++ b/app/views/admin/e_paper_criterias/emailer.html.erb @@ -177,14 +177,16 @@ <%= paper.title %> <% end %>
-
- - <%= t('e_paper.title') %>: - -

- " target="_blank"><%= paper.title %> -

-
+ <% if paper.title.present? %> +
+ + <%= t('e_paper.title') %>: + +

+ " target="_blank"><%= paper.title %> +

+
+ <% end %>
<%= t('e_paper.description') %>: @@ -220,11 +222,13 @@ <%= paper.title %> <% end %>
- + <% if paper.title.present? %> + + <% end %>
<%= paper.content.html_safe %>