fix(web/lists): tags
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-11-12 11:37:07 +08:00
parent ef01c326b2
commit 274baec200
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -44,7 +44,7 @@ function getListTR($info) {
$html .= ' <span class="badge text-bg-danger"><i class="bi bi-eye-slash-fill"></i> ' . UOJLocale::get('hidden') . '</span> '; $html .= ' <span class="badge text-bg-danger"><i class="bi bi-eye-slash-fill"></i> ' . UOJLocale::get('hidden') . '</span> ';
} }
foreach ($list->queryTags() as $tag) { foreach ($list->queryTags() as $tag) {
$html .= ' <a class="uoj-list-tag"><span class="badge text-bg-secondary">' . $tag['tag'] . '</span></a> '; $html .= ' <a class="uoj-list-tag"><span class="badge text-bg-secondary">' . HTML::escape($tag) . '</span></a> ';
} }
$html .= HTML::tag('td', [], max(0, $accepted)); $html .= HTML::tag('td', [], max(0, $accepted));
$html .= HTML::tag('td', [], count($problems)); $html .= HTML::tag('td', [], count($problems));