mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-09 01:08:42 +00:00
Compare commits
No commits in common. "48824e6fc78c33395e640720962f10e7349696e5" and "5394bbb2f72621b6dd3eba53e8c8e80f39e13114" have entirely different histories.
48824e6fc7
...
5394bbb2f7
@ -25,7 +25,7 @@ function echoBlog($info) {
|
||||
echo '<div>', UOJUser::getLink($poster), '</div>';
|
||||
echo '<div class="hstack gap-2 flex-wrap small text-muted">';
|
||||
echo '<span>', '<i class="bi bi-chat-dots"></i> ', $blog->getReplyCnt(), ' </span>';
|
||||
echo '<span>', '<i class="bi bi-hand-thumbs-up"></i> ', $blog->getDisplayZanCnt(), ' </span>';
|
||||
echo '<span>', '<i class="bi bi-hand-thumbs-up"></i> ', $blog->info['zan'], ' </span>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
|
@ -19,7 +19,7 @@ function getProblemTR($info) {
|
||||
$html .= ' <span class="badge text-white bg-info align-middle">' . UOJLocale::get('problems::my problem') . '</span> ';
|
||||
}
|
||||
if ($info['type'] == 'remote') {
|
||||
$html .= ' ' . HTML::tag('a', ['class' => 'badge text-bg-success align-middle', 'href' => '/problems/remote'], '远端评测题');
|
||||
HTML::tag('a', ['class' => 'badge text-bg-success align-middle', 'href' => '/problems/remote'], '远端评测题');
|
||||
}
|
||||
if ($info['is_hidden']) {
|
||||
$html .= ' <span class="badge text-bg-danger align-middle"><i class="bi bi-eye-slash-fill"></i> ' . UOJLocale::get('hidden') . '</span> ';
|
||||
|
@ -54,15 +54,9 @@ for ($i = count($data) - 1; $i > 0; $i--) {
|
||||
}
|
||||
|
||||
$submissions_sort_by_choice = !isset($_COOKIE['submissions-sort-by-code-length']) ? 'time' : 'tot_size';
|
||||
|
||||
if (UOJContest::cur()) {
|
||||
$PageTitle = UOJProblem::cur()->getTitle(['with' => 'letter', 'simplify' => true]);
|
||||
} else {
|
||||
$PageTitle = UOJProblem::cur()->getTitle(['with' => 'id']);
|
||||
}
|
||||
?>
|
||||
|
||||
<?php echoUOJPageHeader($PageTitle . ' - ' . UOJLocale::get('problems::statistics')) ?>
|
||||
<?php echoUOJPageHeader(HTML::stripTags(UOJProblem::info('title')) . ' - ' . UOJLocale::get('problems::statistics')) ?>
|
||||
|
||||
<div class="row">
|
||||
<!-- left col -->
|
||||
|
@ -122,14 +122,6 @@ class UOJBlog {
|
||||
}
|
||||
}
|
||||
|
||||
public function getDisplayZanCnt() {
|
||||
$display_zan = $this->info['zan'] > 0 ? "+{$this->info['zan']}" : $this->info['zan'];
|
||||
|
||||
if ($this->info['zan'] < 0) $display_zan = '-';
|
||||
|
||||
return $display_zan;
|
||||
}
|
||||
|
||||
public function queryNewestComment() {
|
||||
return DB::selectFirst([
|
||||
"select * from blogs_comments",
|
||||
|
@ -619,3 +619,15 @@ form.form-horizontal {
|
||||
[data-bs-theme='dark'] .uoj-username-brown {
|
||||
color: #996f1c;
|
||||
}
|
||||
|
||||
/* Dark: Table Colors */
|
||||
|
||||
[data-bs-theme='dark'] .table-success {
|
||||
--bs-table-bg: #d1e7ddb9;
|
||||
--bs-table-border-color: #bcd0c7b9;
|
||||
}
|
||||
|
||||
[data-bs-theme='dark'] .table-warning {
|
||||
--bs-table-bg: #fff3cdb9;
|
||||
--bs-table-border-color: #e6dbb9b9;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user