From dec731f86faa25d8d591df0cbeb560f27455287e Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 3 Oct 2022 14:28:33 +0800 Subject: [PATCH] fix: problem page items --- web/app/controllers/problem.php | 2 +- .../controllers/problem_statement_manage.php | 34 +------------------ web/app/models/UOJBlogEditor.php | 12 +++++++ 3 files changed, 14 insertions(+), 34 deletions(-) diff --git a/web/app/controllers/problem.php b/web/app/controllers/problem.php index ff339c3..6a791fe 100644 --- a/web/app/controllers/problem.php +++ b/web/app/controllers/problem.php @@ -314,7 +314,7 @@ $('#contest-countdown').countdown(getTimestamp() - UOJ - + = CONTEST_FINISHED): ?> diff --git a/web/app/controllers/problem_statement_manage.php b/web/app/controllers/problem_statement_manage.php index 692c81b..912a84e 100644 --- a/web/app/controllers/problem_statement_manage.php +++ b/web/app/controllers/problem_statement_manage.php @@ -135,39 +135,7 @@ -
- - -
- - + diff --git a/web/app/models/UOJBlogEditor.php b/web/app/models/UOJBlogEditor.php index 85fa565..0b92f28 100644 --- a/web/app/models/UOJBlogEditor.php +++ b/web/app/models/UOJBlogEditor.php @@ -231,6 +231,18 @@ EOD echo '
'; echo $this->post_data['content']; echo '
'; + + if (isset($REQUIRE_LIB['bootstrap5'])) { + echo << +$(document).ready(function() { + $('.markdown-body table').each(function() { + $(this).addClass('table table-bordered table-striped'); + }); +}); + +EOD; + } echoUOJPageFooter(array('ShowPageFooter' => false)); } elseif ($this->type == 'slide') { uojIncludeView('slide', array_merge(