mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 20:08:42 +00:00
feat(web/problems): add link to is_hidden, my tag
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
58abb51818
commit
56b2077a5a
@ -90,10 +90,10 @@ function getProblemTR($info) {
|
|||||||
$html .= HTML::tag_begin('td', ['class' => 'text-start']);
|
$html .= HTML::tag_begin('td', ['class' => 'text-start']);
|
||||||
$html .= $problem->getLink(['with' => 'none']);
|
$html .= $problem->getLink(['with' => 'none']);
|
||||||
if ($problem->isUserOwnProblem(Auth::user())) {
|
if ($problem->isUserOwnProblem(Auth::user())) {
|
||||||
$html .= ' <span class="badge text-white bg-info">' . UOJLocale::get('problems::my problem') . '</span> ';
|
$html .= ' <a href="/problems?my=on"><span class="badge text-white bg-info">' . UOJLocale::get('problems::my problem') . '</span></a> ';
|
||||||
}
|
}
|
||||||
if ($info['is_hidden']) {
|
if ($info['is_hidden']) {
|
||||||
$html .= ' <span class="badge text-bg-danger"><i class="bi bi-eye-slash-fill"></i> ' . UOJLocale::get('hidden') . '</span> ';
|
$html .= ' <a href="/problems?is_hidden=on"><span class="badge text-bg-danger"><i class="bi bi-eye-slash-fill"></i> ' . UOJLocale::get('hidden') . '</span></a> ';
|
||||||
}
|
}
|
||||||
if (isset($_COOKIE['show_tags_mode'])) {
|
if (isset($_COOKIE['show_tags_mode'])) {
|
||||||
foreach ($problem->queryTags() as $tag) {
|
foreach ($problem->queryTags() as $tag) {
|
||||||
|
Loading…
Reference in New Issue
Block a user