feat(web/problem): submissions button
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-11-23 16:31:37 +08:00
parent 44b0087356
commit c0512e35d8
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
6 changed files with 36 additions and 0 deletions

View File

@ -351,6 +351,12 @@ if (UOJContest::cur()) {
</a> </a>
</li> </li>
<?php endif ?> <?php endif ?>
<li class="nav-item text-start">
<a class="nav-link" href="/submissions?problem_id=<?= UOJProblem::info('id') ?>">
<i class="bi bi-list-ul"></i>
<?= UOJLocale::get('submissions') ?>
</a>
</li>
<?php if (UOJContest::cur() && UOJContest::cur()->userCanSeeProblemStatistics(Auth::user())) : ?> <?php if (UOJContest::cur() && UOJContest::cur()->userCanSeeProblemStatistics(Auth::user())) : ?>
<li class="nav-item text-start"> <li class="nav-item text-start">
<a class="nav-link" href="/contest/<?= UOJContest::info('id') ?>/problem/<?= $problem['id'] ?>/statistics"> <a class="nav-link" href="/contest/<?= UOJContest::info('id') ?>/problem/<?= $problem['id'] ?>/statistics">

View File

@ -735,6 +735,12 @@ $info_form->runAtServer();
<?= UOJLocale::get('problems::solutions') ?> <?= UOJLocale::get('problems::solutions') ?>
</a> </a>
</li> </li>
<li class="nav-item text-start">
<a class="nav-link" href="/submissions?problem_id=<?= UOJProblem::info('id') ?>">
<i class="bi bi-list-ul"></i>
<?= UOJLocale::get('submissions') ?>
</a>
</li>
<li class="nav-item text-start"> <li class="nav-item text-start">
<a class="nav-link" href="/problem/<?= $problem['id'] ?>/statistics"> <a class="nav-link" href="/problem/<?= $problem['id'] ?>/statistics">
<i class="bi bi-graph-up"></i> <i class="bi bi-graph-up"></i>

View File

@ -145,6 +145,12 @@ if (isSuperUser(Auth::user())) {
<?= UOJLocale::get('problems::solutions') ?> <?= UOJLocale::get('problems::solutions') ?>
</a> </a>
</li> </li>
<li class="nav-item text-start">
<a class="nav-link" href="/submissions?problem_id=<?= UOJProblem::info('id') ?>">
<i class="bi bi-list-ul"></i>
<?= UOJLocale::get('submissions') ?>
</a>
</li>
<li class="nav-item text-start"> <li class="nav-item text-start">
<a class="nav-link" href="/problem/<?= UOJProblem::info('id') ?>/statistics"> <a class="nav-link" href="/problem/<?= UOJProblem::info('id') ?>/statistics">
<i class="bi bi-graph-up"></i> <i class="bi bi-graph-up"></i>

View File

@ -220,6 +220,12 @@ $pag = new Paginator($pag_config);
<?= UOJLocale::get('problems::solutions') ?> <?= UOJLocale::get('problems::solutions') ?>
</a> </a>
</li> </li>
<li class="nav-item text-start">
<a class="nav-link" href="/submissions?problem_id=<?= UOJProblem::info('id') ?>">
<i class="bi bi-list-ul"></i>
<?= UOJLocale::get('submissions') ?>
</a>
</li>
<li class="nav-item text-start"> <li class="nav-item text-start">
<a class="nav-link" href="/problem/<?= UOJProblem::info('id') ?>/statistics"> <a class="nav-link" href="/problem/<?= UOJProblem::info('id') ?>/statistics">
<i class="bi bi-graph-up"></i> <i class="bi bi-graph-up"></i>

View File

@ -129,6 +129,12 @@ $problem_editor->runAtServer();
<?= UOJLocale::get('problems::solutions') ?> <?= UOJLocale::get('problems::solutions') ?>
</a> </a>
</li> </li>
<li class="nav-item text-start">
<a class="nav-link" href="/submissions?problem_id=<?= UOJProblem::info('id') ?>">
<i class="bi bi-list-ul"></i>
<?= UOJLocale::get('submissions') ?>
</a>
</li>
<li class="nav-item text-start"> <li class="nav-item text-start">
<a class="nav-link" href="/problem/<?= UOJProblem::info('id') ?>/statistics"> <a class="nav-link" href="/problem/<?= UOJProblem::info('id') ?>/statistics">
<i class="bi bi-graph-up"></i> <i class="bi bi-graph-up"></i>

View File

@ -293,6 +293,12 @@ $submissions_sort_by_choice = !isset($_COOKIE['submissions-sort-by-code-length']
</a> </a>
</li> </li>
<?php endif ?> <?php endif ?>
<li class="nav-item text-start">
<a class="nav-link" href="/submissions?problem_id=<?= UOJProblem::info('id') ?>">
<i class="bi bi-list-ul"></i>
<?= UOJLocale::get('submissions') ?>
</a>
</li>
<li class="nav-item text-start"> <li class="nav-item text-start">
<a class="nav-link active" href="#"> <a class="nav-link active" href="#">
<i class="bi bi-graph-up"></i> <i class="bi bi-graph-up"></i>