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"> <aside class="col mt-3 mt-md-0">
<?php <?php
uojIncludeView('sidebar', array()); uojIncludeView('sidebar', array());
?> ?>
</aside> </aside>
</div> </div>

View File

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

View File

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

View File

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