chore: move "back to bs4" button

This commit is contained in:
Baoshuo Ren 2022-09-26 21:11:53 +08:00
parent f8966c2b26
commit c624d2ceee
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 8 additions and 12 deletions

View File

@ -131,18 +131,6 @@ mb-4" role="navigation">
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?> <?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<hr class="d-lg-none text-muted"> <hr class="d-lg-none text-muted">
<ul class="nav navbar-nav ms-md-auto"> <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"> <li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false"> <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-translate"></i> <i class="bi bi-translate"></i>

View File

@ -13,6 +13,14 @@
<a class="text-decoration-none" href="<?= HTML::url('/') ?>">S2OJ</a> <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>) (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 ?> <?= 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>
<p> <p>
Based on Based on