fix(web/problem): tag in problem info card
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-12-05 16:25:14 +08:00
parent 848607a87d
commit edc98d5c35
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
3 changed files with 15 additions and 15 deletions

View File

@ -406,11 +406,11 @@ if (UOJContest::cur()) {
<span>标签</span> <span>标签</span>
<span> <span>
<?php foreach (UOJProblem::cur()->queryTags() as $tag) : ?> <?php foreach (UOJProblem::cur()->queryTags() as $tag) : ?>
<a class="uoj-problem-tag"> <?= HTML::tag(
<span class="badge bg-secondary"> 'a',
<?= HTML::escape($tag) ?> ['class' => 'uoj-problem-tag'],
</span> HTML::tag('span', ['class' => 'badge bg-secondary'], HTML::escape($tag))
</a> ) ?>
<?php endforeach ?> <?php endforeach ?>
</span> </span>
</li> </li>

View File

@ -269,11 +269,11 @@ $pag = new Paginator($pag_config);
<span>标签</span> <span>标签</span>
<span> <span>
<?php foreach (UOJProblem::cur()->queryTags() as $tag) : ?> <?php foreach (UOJProblem::cur()->queryTags() as $tag) : ?>
<a class="uoj-problem-tag"> <?= HTML::tag(
<span class="badge bg-secondary"> 'a',
<?= HTML::escape($tag) ?> ['class' => 'uoj-problem-tag'],
</span> HTML::tag('span', ['class' => 'badge bg-secondary'], HTML::escape($tag))
</a> ) ?>
<?php endforeach ?> <?php endforeach ?>
</span> </span>
</li> </li>

View File

@ -341,11 +341,11 @@ $submissions_sort_by_choice = !isset($_COOKIE['submissions-sort-by-code-length']
<span>标签</span> <span>标签</span>
<span> <span>
<?php foreach (UOJProblem::cur()->queryTags() as $tag) : ?> <?php foreach (UOJProblem::cur()->queryTags() as $tag) : ?>
<a class="uoj-problem-tag"> <?= HTML::tag(
<span class="badge bg-secondary"> 'a',
<?= HTML::escape($tag) ?> ['class' => 'uoj-problem-tag'],
</span> HTML::tag('span', ['class' => 'badge bg-secondary'], HTML::escape($tag))
</a> ) ?>
<?php endforeach ?> <?php endforeach ?>
</span> </span>
</li> </li>