mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 12:58:40 +00:00
feat: include sidebar in index page
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
e013100989
commit
42591677e5
@ -111,10 +111,10 @@
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="d-none d-md-block">
|
||||
<div class="d-none d-md-block mb-4">
|
||||
<img class="media-object img-thumbnail" src="/images/logo.png" alt="Logo" />
|
||||
</div>
|
||||
<div class="card card-default mt-4">
|
||||
<div class="card card-default mb-2">
|
||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||
<div class="card-header bg-white">
|
||||
<b><?= UOJLocale::get('countdowns') ?></b>
|
||||
@ -154,7 +154,12 @@
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card card-default mt-4">
|
||||
|
||||
<?php if (Auth::check()): ?>
|
||||
<?php uojIncludeView('sidebar') ?>
|
||||
<?php endif ?>
|
||||
|
||||
<div class="card card-default mb-2">
|
||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||
<div class="card-header bg-white">
|
||||
<b><?= UOJLocale::get('friend links') ?></b>
|
||||
|
@ -1,4 +1,6 @@
|
||||
<?php if (!isset($group_announcements_hidden) && Auth::check()): ?>
|
||||
<?php if (Auth::check()): ?>
|
||||
|
||||
<?php if (!isset($group_announcements_hidden)): ?>
|
||||
<?php $groups = queryGroupsOfUser(Auth::id()); ?>
|
||||
<?php if (count($groups)): ?>
|
||||
<div class="card card-default mb-2" id="group-user-announcements">
|
||||
@ -80,3 +82,5 @@
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php endif // Auth::check() ?>
|
||||
|
Loading…
Reference in New Issue
Block a user