fix: 4fa402ec4b
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-09-24 12:51:34 +08:00
parent 4fa402ec4b
commit 56967e039d
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 11 additions and 2 deletions

View File

@ -54,7 +54,15 @@ EOD;
echo '<td>', $contest_name_link, '</td>'; echo '<td>', $contest_name_link, '</td>';
echo '<td>', '<a'.$a_class.'href="'.HTML::timeanddate_url($contest['start_time'], array('duration' => $contest['last_min'])).'">'.$contest['start_time_str'].'</a>', '</td>'; echo '<td>', '<a'.$a_class.'href="'.HTML::timeanddate_url($contest['start_time'], array('duration' => $contest['last_min'])).'">'.$contest['start_time_str'].'</a>', '</td>';
echo '<td>', UOJLocale::get('hours', $last_hour), '</td>'; echo '<td>', UOJLocale::get('hours', $last_hour), '</td>';
echo '<td>', '<a'.$a_class.'href="/contest/'.$contest['id'].'/registrants"><span class="glyphicon glyphicon-user"></span> &times;'.$contest['player_num'].'</a>', '</td>'; echo '<td>', '<a'.$a_class.'href="/contest/'.$contest['id'].'/registrants">';
if (isset($REQUIRE_LIB['bootstrap5'])) {
echo '<i class="bi bi-person-fill"></i>';
} else {
echo '<span class="glyphicon glyphicon-user"></span>';
}
echo ' &times;'.$contest['player_num'].'</a>', '</td>';
echo '<td>', '<div class="text-left">'.$click_zan_block.'</div>', '</td>'; echo '<td>', '<div class="text-left">'.$click_zan_block.'</div>', '</td>';
echo '</tr>'; echo '</tr>';
} }
@ -85,7 +93,7 @@ if (isSuperUser($myUser)) {
$table_config = array('page_len' => 40); $table_config = array('page_len' => 40);
if (isset($REQUIRE_LIB['bootstrap5'])) { if (isset($REQUIRE_LIB['bootstrap5'])) {
$table_config['div_classes'] = array('card', 'mb-3'); $table_config['div_classes'] = array('card', 'mb-3');
$table_config['table_classes'] = array('table', 'uoj-table', 'mb-0'); $table_config['table_classes'] = array('table', 'uoj-table', 'mb-0', 'text-center');
} }
echoLongTable(array('*'), 'contests', "status != 'finished'", 'order by start_time desc, id desc', $table_header, echoLongTable(array('*'), 'contests', "status != 'finished'", 'order by start_time desc, id desc', $table_header,
echoContest, echoContest,

View File

@ -51,6 +51,7 @@ label {
display: inline-block; display: inline-block;
min-width: 140px; min-width: 140px;
text-align: left; text-align: left;
font-size: 0.9em;
} }
.uoj-click-zan-up, .uoj-click-zan-down, .uoj-click-zan-cnt { .uoj-click-zan-up, .uoj-click-zan-down, .uoj-click-zan-cnt {