mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 14:48:41 +00:00
feat(web/problem): display is_hidden tag in problem page
This commit is contained in:
parent
3ceb26a0e7
commit
58abb51818
@ -405,6 +405,14 @@ if (UOJContest::cur()) {
|
|||||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||||
<span>标签</span>
|
<span>标签</span>
|
||||||
<span>
|
<span>
|
||||||
|
<?php if (UOJProblem::info('is_hidden')) : ?>
|
||||||
|
<a href="<?= HTML::url('/problems', ['params' => ['is_hidden' => 'on']]) ?>">
|
||||||
|
<span class="badge text-bg-danger">
|
||||||
|
<i class="bi bi-eye-slash-fill"></i>
|
||||||
|
<?= UOJLocale::get('hidden') ?>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
<?php endif ?>
|
||||||
<?php foreach (UOJProblem::cur()->queryTags() as $tag) : ?>
|
<?php foreach (UOJProblem::cur()->queryTags() as $tag) : ?>
|
||||||
<?= HTML::tag(
|
<?= HTML::tag(
|
||||||
'a',
|
'a',
|
||||||
|
Loading…
Reference in New Issue
Block a user