Compare commits

...

3 Commits

Author SHA1 Message Date
bdd44e7fb8
fix: style
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-26 21:11:58 +08:00
c624d2ceee
chore: move "back to bs4" button 2022-09-26 21:11:53 +08:00
f8966c2b26
fix: bs4 compatibility 2022-09-26 21:11:38 +08:00
4 changed files with 15 additions and 17 deletions

View File

@ -36,10 +36,10 @@ EOD;
$config = array();
$config['table_classes'] = array('table', 'table-hover');
if (isset($REQUIRE_LIB['bootstrap5'])) {
$config['div_classes'] = array('card', 'my-3');
$config['table_classes'] = array('table', 'uoj-table', 'mb-0');
}
if (isset($REQUIRE_LIB['bootstrap5'])) {
$config['div_classes'] = array('card', 'my-3');
$config['table_classes'] = array('table', 'uoj-table', 'mb-0');
}
?>
<?php echoUOJPageHeader(UOJLocale::get('blogs')) ?>

View File

@ -156,7 +156,9 @@
</div>
<?php if (Auth::check()): ?>
<?php uojIncludeView('sidebar') ?>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<?php uojIncludeView('sidebar') ?>
<?php endif ?>
<?php endif ?>
<div class="card card-default mb-2">

View File

@ -131,18 +131,6 @@ mb-4" role="navigation">
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<hr class="d-lg-none text-muted">
<ul class="nav navbar-nav ms-md-auto">
<li class="nav-item">
<a class="nav-link" href="#" id="back-to-bs4">
<i class="bi bi-sign-turn-left"></i>
返回旧版
</a>
<script>
$('#back-to-bs4').click(function() {
$.cookie('bootstrap4', '1', { expires: 7, path: '/' });
location.reload();
});
</script>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-translate"></i>

View File

@ -13,6 +13,14 @@
<a class="text-decoration-none" href="<?= HTML::url('/') ?>">S2OJ</a>
(build: <a class="text-decoration-none" href="https://github.com/renbaoshuo/S2OJ<?= UOJConfig::$data['profile']['s2oj-version'] == "dev" ? '' : '/tree/' . UOJConfig::$data['profile']['s2oj-version'] ?>"><?= UOJConfig::$data['profile']['s2oj-version'] ?></a>)
<?= UOJLocale::get('server time') ?>: <?= UOJTime::$time_now_str ?>
|
<a class="text-decoration-none" href="#" id="back-to-bs4">返回旧版</a>
<script>
$('#back-to-bs4').click(function() {
$.cookie('bootstrap4', '1', { expires: 7, path: '/' });
location.reload();
});
</script>
</p>
<p>
Based on