Compare commits

...

3 Commits

Author SHA1 Message Date
f1a88fe4be
chore: remove docker image build test
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-23 08:13:31 +08:00
72b70d2911
fix: 9b8ffca752 2022-09-23 08:13:21 +08:00
3bf24bbbb9
fix: d3e99b0217 2022-09-23 08:03:55 +08:00
3 changed files with 14 additions and 41 deletions

View File

@ -1,43 +1,16 @@
name: Lint & Test name: Lint & Test
on: on:
- push - push
- pull_request - pull_request
jobs: jobs:
php-cs-fixer: php-cs-fixer:
name: PHP-CS-Fixer name: PHP-CS-Fixer
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: PHP-CS-Fixer - name: PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga uses: docker://oskarstark/php-cs-fixer-ga
with: with:
args: --config=./web/.php-cs-fixer.php --diff --dry-run args: --config=./web/.php-cs-fixer.php --diff --dry-run
docker-db:
name: Build Docker Image (uoj-db)
needs: php-cs-fixer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Docker Image (uoj-db)
run: docker-compose build uoj-db
docker-judger:
name: Build Docker Image (uoj-judger)
needs: php-cs-fixer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Docker Image
run: docker-compose build uoj-judger
docker-web:
name: Build Docker Image (uoj-web)
needs: php-cs-fixer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Docker Image (uoj-web)
run: docker-compose build uoj-web

View File

@ -74,9 +74,9 @@
echo '<td>' . getUserLink($username) . '</td>'; echo '<td>' . getUserLink($username) . '</td>';
foreach ($problem_ids as $problem_id) { foreach ($problem_ids as $problem_id) {
if (!isset($finished[$username]) || !isset($finished[$username][$problem_id])) { if (!isset($finished[$username]) || !isset($finished[$username][$problem_id])) {
echo '<td class="failed"><span class="glyphicon glyphicon-ok"></span></td>'; echo '<td class="failed"><span class="glyphicon glyphicon-remove"></span></td>';
} else { } else {
echo '<td class="success"><span class="glyphicon glyphicon-remove"></span></td>'; echo '<td class="success"><span class="glyphicon glyphicon-ok"></span></td>';
} }
} }
echo '</tr>'; echo '</tr>';

View File

@ -584,6 +584,7 @@ EOD;
<a href="/contest/<?=$contest['id']?>/registrants" class="btn btn-info btn-block"><?= UOJLocale::get('contests::contest registrants') ?></a> <a href="/contest/<?=$contest['id']?>/registrants" class="btn btn-info btn-block"><?= UOJLocale::get('contests::contest registrants') ?></a>
<?php if (isSuperUser($myUser)): ?> <?php if (isSuperUser($myUser)): ?>
<a href="/contest/<?=$contest['id']?>/manage" class="btn btn-primary btn-block">管理</a> <a href="/contest/<?=$contest['id']?>/manage" class="btn btn-primary btn-block">管理</a>
<?php endif ?>
<?php if (isset($start_test_form)): ?> <?php if (isset($start_test_form)): ?>
<div class="top-buffer-sm"> <div class="top-buffer-sm">
<?php $start_test_form->printHTML(); ?> <?php $start_test_form->printHTML(); ?>
@ -594,7 +595,6 @@ EOD;
<?php $publish_result_form->printHTML(); ?> <?php $publish_result_form->printHTML(); ?>
</div> </div>
<?php endif ?> <?php endif ?>
<?php endif ?>
<?php if (isset($self_reviews_update_form)) { ?> <?php if (isset($self_reviews_update_form)) { ?>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">