fix: style

This commit is contained in:
Baoshuo Ren 2022-09-25 18:30:17 +08:00
parent 3a26ee7092
commit dcb4417e75
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
4 changed files with 8 additions and 8 deletions

View File

@ -125,7 +125,7 @@ EOD;
<aside class="col mt-3 mt-md-0">
<?php
uojIncludeView('sidebar', array());
?>
?>
</aside>
</div>

View File

@ -154,7 +154,7 @@ EOD;
<aside class="col mt-3 mt-md-0">
<?php
uojIncludeView('sidebar', array());
?>
?>
</aside>
</div>

View File

@ -287,7 +287,7 @@ $('#input-show_submit_mode').click(function() {
<aside class="col mt-3 mt-md-0">
<?php
uojIncludeView('sidebar', array());
?>
?>
</aside>
</div>

View File

@ -9,8 +9,8 @@
<?php foreach ($groups as $group): ?>
<?php
$group_detail = DB::selectFirst("select * from groups where id = {$group['id']}");
$group_announcement = $group_detail['announcement'];
?>
$group_announcement = $group_detail['announcement'];
?>
<li class="list-group-item">
<a class="fw-bold text-decoration-none" href="<?= HTML::url('/group/'.$group['id']) ?>">
<?= $group['title'] ?>
@ -34,7 +34,7 @@
<?php if (!isset($upcoming_contests_hidden)): ?>
<?php
$upcoming_contests = DB::selectAll("SELECT * FROM contests WHERE status = 'unfinished' ORDER BY start_time ASC, id ASC LIMIT 7");
?>
?>
<div class="card card-default mb-2" id="group-user-announcements">
<div class="card-header fw-bold bg-transparent">
近期比赛
@ -54,8 +54,8 @@
<?= UOJLocale::get('contests::in progress') ?>
<?php else: ?>
<?php
$rest_seconds = $contest['start_time']->getTimestamp() - UOJTime::$time_now->getTimestamp();
?>
$rest_seconds = $contest['start_time']->getTimestamp() - UOJTime::$time_now->getTimestamp();
?>
<?php if ($rest_seconds > 86400): ?>
<?= UOJLocale::get('contests::will start in x days', floor($rest_seconds / 86400)) ?>
<?php else: ?>