Skip to content

Commit

Permalink
Change the style in admin notice content view from <p> to <pre> (#11301)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
a1012112796 committed May 5, 2020
1 parent a104864 commit 0396fcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/admin/notice.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<i class="close icon"></i>
<div class="header">{{$.i18n.Tr "admin.notices.view_detail_header"}}</div>
<div class="content">
<p></p>
<pre></pre>
</div>
</div>
{{template "base/footer" .}}
2 changes: 1 addition & 1 deletion web_src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit 0396fcf

Please sign in to comment.