mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-24 00:18:40 +00:00
Compare commits
3 Commits
dedc5c6e94
...
f1a88fe4be
Author | SHA1 | Date | |
---|---|---|---|
f1a88fe4be | |||
72b70d2911 | |||
3bf24bbbb9 |
49
.github/workflows/test.yml
vendored
49
.github/workflows/test.yml
vendored
@ -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
|
|
||||||
|
@ -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>';
|
||||||
|
@ -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">
|
||||||
|
Loading…
Reference in New Issue
Block a user