mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 18:00:34 +00:00
Change the style in admin notice content view from <p> to <pre> (#11301)
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>
This commit is contained in:
parent
a104864da2
commit
0396fcf4b5
2 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@
|
||||||
<i class="close icon"></i>
|
<i class="close icon"></i>
|
||||||
<div class="header">{{$.i18n.Tr "admin.notices.view_detail_header"}}</div>
|
<div class="header">{{$.i18n.Tr "admin.notices.view_detail_header"}}</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p></p>
|
<pre></pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -2019,7 +2019,7 @@ function initAdmin() {
|
||||||
|
|
||||||
// Attach view detail modals
|
// Attach view detail modals
|
||||||
$('.view-detail').on('click', function () {
|
$('.view-detail').on('click', function () {
|
||||||
$detailModal.find('.content p').text($(this).data('content'));
|
$detailModal.find('.content pre').text($(this).data('content'));
|
||||||
$detailModal.modal('show');
|
$detailModal.modal('show');
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue