From 8a04d24a5bbd702353c43dc7194435dd9addc4f4 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sun, 26 Feb 2023 18:03:00 +0800 Subject: [PATCH] refactor(contest): contest card --- web/app/controllers/contest_inside.php | 33 +----------- web/app/controllers/contests.php | 13 +++-- web/app/controllers/problem.php | 33 +----------- web/app/controllers/problem_statistics.php | 33 +----------- web/app/models/UOJContest.php | 58 +++++++++++++++++++++- web/app/views/sidebar.php | 5 +- web/js/uoj.js | 35 ++++++------- 7 files changed, 88 insertions(+), 122 deletions(-) diff --git a/web/app/controllers/contest_inside.php b/web/app/controllers/contest_inside.php index 138d1d1..ee33aa0 100644 --- a/web/app/controllers/contest_inside.php +++ b/web/app/controllers/contest_inside.php @@ -554,38 +554,7 @@ echoUOJPageHeader($tabs_info[$cur_tab]['name'] . ' - ' . UOJContest::info('name'
-
-
-

- - - -

-
- - - - - queryJudgeProgress() ?> - (%) - - - -
-
-
-
  • - - - - - getZanBlock() ?> - -
  • -
    -
    + getContestCard() ?> basicRule() === 'OI') : ?>

    此次比赛为 OI 赛制。

    diff --git a/web/app/controllers/contests.php b/web/app/controllers/contests.php index fa2c4ce..add6bf7 100644 --- a/web/app/controllers/contests.php +++ b/web/app/controllers/contests.php @@ -112,11 +112,14 @@ if ($rest_second <= 86400) { echo <<
    $upcoming_contest_name 倒计时
    -
    - diff --git a/web/app/controllers/problem.php b/web/app/controllers/problem.php index 58ef7fd..959bc61 100644 --- a/web/app/controllers/problem.php +++ b/web/app/controllers/problem.php @@ -386,38 +386,7 @@ if (UOJContest::cur()) {