fix: index page bs4
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-09-24 08:33:36 +08:00
parent 2367452bcd
commit bff23cfdfd
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -69,14 +69,26 @@
</div> </div>
<?php if (Auth::check()): ?> <?php if (Auth::check()): ?>
<?php if (isNormalUser($myUser)): ?> <?php if (isNormalUser($myUser)): ?>
<div class="mt-4 card">
<div class="mt-4
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
card
<?php endif ?>
">
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<div class="card-body"> <div class="card-body">
<h4 class="card-title"><?= UOJLocale::get('top solver') ?></h4> <h4 class="card-title"><?= UOJLocale::get('top solver') ?></h4>
<?php else: ?>
<h3><?= UOJLocale::get('top solver') ?></h3>
<?php endif ?>
<?php echoRanklist(array( <?php echoRanklist(array(
'echo_full' => true, 'echo_full' => true,
'top10' => true, 'top10' => true,
'by_accepted' => true, 'by_accepted' => true,
'table_classes' => array('table', 'text-center'), 'table_classes' => isset($REQUIRE_LIB['bootstrap5'])
? array('table', 'text-center')
: array('table', 'table-bordered', 'table-hover', 'table-striped', 'table-text-center'),
)) ?> )) ?>
<div class="text-center"> <div class="text-center">
<a href="/solverlist" <a href="/solverlist"
@ -85,7 +97,9 @@
<?php endif ?> <?php endif ?>
><?= UOJLocale::get('view all') ?></a> ><?= UOJLocale::get('view all') ?></a>
</div> </div>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
</div> </div>
<?php endif ?>
</div> </div>
<?php endif ?> <?php endif ?>
<?php else: ?> <?php else: ?>