mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-23 19:38:41 +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
|
||||
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
php-cs-fixer:
|
||||
name: PHP-CS-Fixer
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: PHP-CS-Fixer
|
||||
uses: docker://oskarstark/php-cs-fixer-ga
|
||||
with:
|
||||
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
|
||||
php-cs-fixer:
|
||||
name: PHP-CS-Fixer
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: PHP-CS-Fixer
|
||||
uses: docker://oskarstark/php-cs-fixer-ga
|
||||
with:
|
||||
args: --config=./web/.php-cs-fixer.php --diff --dry-run
|
||||
|
@ -74,9 +74,9 @@
|
||||
echo '<td>' . getUserLink($username) . '</td>';
|
||||
foreach ($problem_ids as $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 {
|
||||
echo '<td class="success"><span class="glyphicon glyphicon-remove"></span></td>';
|
||||
echo '<td class="success"><span class="glyphicon glyphicon-ok"></span></td>';
|
||||
}
|
||||
}
|
||||
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>
|
||||
<?php if (isSuperUser($myUser)): ?>
|
||||
<a href="/contest/<?=$contest['id']?>/manage" class="btn btn-primary btn-block">管理</a>
|
||||
<?php endif ?>
|
||||
<?php if (isset($start_test_form)): ?>
|
||||
<div class="top-buffer-sm">
|
||||
<?php $start_test_form->printHTML(); ?>
|
||||
@ -594,7 +595,6 @@ EOD;
|
||||
<?php $publish_result_form->printHTML(); ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
<?php if (isset($self_reviews_update_form)) { ?>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
|
Loading…
Reference in New Issue
Block a user