From e6b72b1190cb365f0ee16ce27cbb100e970d66a4 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Tue, 5 May 2020 22:29:16 +0800 Subject: [PATCH] ui: Change the style of content in notic content view from

to


That's because many notic have more than one lines. So I think
pre is more better to used in here than p

Signed-off-by: a1012112796 <1012112796@qq.com>
---
 templates/admin/notice.tmpl | 2 +-
 web_src/js/index.js         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/admin/notice.tmpl b/templates/admin/notice.tmpl
index 8e56713ecee0..7d1720becd13 100644
--- a/templates/admin/notice.tmpl
+++ b/templates/admin/notice.tmpl
@@ -77,7 +77,7 @@
 	
 	
{{$.i18n.Tr "admin.notices.view_detail_header"}}
-

+

 	
{{template "base/footer" .}} diff --git a/web_src/js/index.js b/web_src/js/index.js index 639f36fab791..6ac4a1de5d4e 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -2019,7 +2019,7 @@ function initAdmin() { // Attach view detail modals $('.view-detail').on('click', function () { - $detailModal.find('.content p').text($(this).data('content')); + $detailModal.find('.content pre').text($(this).data('content')); $detailModal.modal('show'); return false; });