mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-23 03:58:41 +00:00
feat: move problem sidebar items
This commit is contained in:
parent
c5bb4a1a67
commit
d1374e99eb
@ -378,6 +378,14 @@ $('#contest-countdown').countdown(<?= $contest['end_time']->getTimestamp() - UOJ
|
|||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<ul class="nav nav-pills nav-fill flex-column" role="tablist">
|
||||||
|
<li class="nav-item text-start">
|
||||||
|
<a class="nav-link" href="/contest/<?= $contest['id'] ?>" role="tab">
|
||||||
|
<i class="bi bi-arrow-90deg-left"></i>
|
||||||
|
<?= UOJLocale::get('contests::back to the contest') ?>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
<div class="card-footer bg-transparent">
|
<div class="card-footer bg-transparent">
|
||||||
比赛评价:<?= getClickZanBlock('C', $contest['id'], $contest['zan']) ?>
|
比赛评价:<?= getClickZanBlock('C', $contest['id'], $contest['zan']) ?>
|
||||||
</div>
|
</div>
|
||||||
@ -419,6 +427,18 @@ $('#contest-countdown').countdown(<?= $contest['end_time']->getTimestamp() - UOJ
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
<li class="nav-item text-start">
|
||||||
|
<a class="nav-link"
|
||||||
|
<?php if ($contest): ?>
|
||||||
|
href="/contest/<?= $contest['id'] ?>/problem/<?= $problem['id'] ?>/statistics"
|
||||||
|
<?php else: ?>
|
||||||
|
href="/problem/<?= $problem['id'] ?>/statistics"
|
||||||
|
<?php endif ?>
|
||||||
|
>
|
||||||
|
<i class="bi bi-graph-up"></i>
|
||||||
|
<?= UOJLocale::get('problems::statistics') ?>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<?php if (hasProblemPermission($myUser, $problem)): ?>
|
<?php if (hasProblemPermission($myUser, $problem)): ?>
|
||||||
<li class="nav-item text-start">
|
<li class="nav-item text-start">
|
||||||
<a class="nav-link" href="/problem/<?= $problem['id'] ?>/manage/statement" role="tab">
|
<a class="nav-link" href="/problem/<?= $problem['id'] ?>/manage/statement" role="tab">
|
||||||
@ -427,15 +447,10 @@ $('#contest-countdown').countdown(<?= $contest['end_time']->getTimestamp() - UOJ
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if ($contest): ?>
|
|
||||||
<li class="nav-item text-start">
|
|
||||||
<a class="nav-link" href="/contest/<?= $contest['id'] ?>" role="tab">
|
|
||||||
<i class="bi bi-arrow-90deg-left"></i>
|
|
||||||
<?= UOJLocale::get('contests::back to the contest') ?>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<?php endif ?>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
<div class="card-footer bg-transparent">
|
||||||
|
评价:<?= getClickZanBlock('P', $problem['id'], $problem['zan']) ?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card card-default mb-2">
|
<div class="card card-default mb-2">
|
||||||
@ -452,16 +467,7 @@ $('#contest-countdown').countdown(<?= $contest['end_time']->getTimestamp() - UOJ
|
|||||||
附件下载
|
附件下载
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item text-start">
|
|
||||||
<a class="nav-link" href="/problem/<?= $problem['id'] ?>/statistics">
|
|
||||||
<i class="bi bi-graph-up"></i>
|
|
||||||
<?= UOJLocale::get('problems::statistics') ?>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
<div class="card-footer bg-transparent">
|
|
||||||
评价:<?= getClickZanBlock('P', $problem['id'], $problem['zan']) ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@ -174,6 +174,12 @@ table-hover
|
|||||||
<?= UOJLocale::get('problems::solutions') ?>
|
<?= UOJLocale::get('problems::solutions') ?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="nav-item text-start">
|
||||||
|
<a class="nav-link" href="/problem/<?= $problem['id'] ?>/statistics">
|
||||||
|
<i class="bi bi-graph-up"></i>
|
||||||
|
<?= UOJLocale::get('problems::statistics') ?>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li class="nav-item text-start">
|
<li class="nav-item text-start">
|
||||||
<a class="nav-link active" href="#" role="tab">
|
<a class="nav-link active" href="#" role="tab">
|
||||||
<i class="bi bi-sliders"></i>
|
<i class="bi bi-sliders"></i>
|
||||||
@ -181,6 +187,9 @@ table-hover
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<div class="card-footer bg-transparent">
|
||||||
|
评价:<?= getClickZanBlock('P', $problem['id'], $problem['zan']) ?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php uojIncludeView('sidebar', array()) ?>
|
<?php uojIncludeView('sidebar', array()) ?>
|
||||||
|
@ -230,6 +230,12 @@ EOD;
|
|||||||
<?= UOJLocale::get('problems::solutions') ?>
|
<?= UOJLocale::get('problems::solutions') ?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="nav-item text-start">
|
||||||
|
<a class="nav-link" href="/problem/<?= $problem['id'] ?>/statistics">
|
||||||
|
<i class="bi bi-graph-up"></i>
|
||||||
|
<?= UOJLocale::get('problems::statistics') ?>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<?php if (hasProblemPermission($myUser, $problem)): ?>
|
<?php if (hasProblemPermission($myUser, $problem)): ?>
|
||||||
<li class="nav-item text-start">
|
<li class="nav-item text-start">
|
||||||
<a class="nav-link" href="/problem/<?= $problem['id'] ?>/manage/statement" role="tab">
|
<a class="nav-link" href="/problem/<?= $problem['id'] ?>/manage/statement" role="tab">
|
||||||
@ -239,29 +245,6 @@ EOD;
|
|||||||
</li>
|
</li>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="card card-default mb-2">
|
|
||||||
<ul class="nav nav-fill flex-column">
|
|
||||||
<li class="nav-item text-start">
|
|
||||||
<a class="nav-link" href="<?= HTML::url("/download.php?type=problem&id={$problem['id']}") ?>">
|
|
||||||
<i class="bi bi-hdd-stack"></i>
|
|
||||||
测试数据
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item text-start">
|
|
||||||
<a class="nav-link" href="<?= HTML::url("/download.php?type=attachment&id={$problem['id']}") ?>">
|
|
||||||
<i class="bi bi-download"></i>
|
|
||||||
附件下载
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item text-start">
|
|
||||||
<a class="nav-link" href="/problem/<?= $problem['id'] ?>/statistics">
|
|
||||||
<i class="bi bi-graph-up"></i>
|
|
||||||
<?= UOJLocale::get('problems::statistics') ?>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<div class="card-footer bg-transparent">
|
<div class="card-footer bg-transparent">
|
||||||
评价:<?= getClickZanBlock('P', $problem['id'], $problem['zan']) ?>
|
评价:<?= getClickZanBlock('P', $problem['id'], $problem['zan']) ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -150,6 +150,12 @@
|
|||||||
<?= UOJLocale::get('problems::solutions') ?>
|
<?= UOJLocale::get('problems::solutions') ?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="nav-item text-start">
|
||||||
|
<a class="nav-link" href="/problem/<?= $problem['id'] ?>/statistics">
|
||||||
|
<i class="bi bi-graph-up"></i>
|
||||||
|
<?= UOJLocale::get('problems::statistics') ?>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li class="nav-item text-start">
|
<li class="nav-item text-start">
|
||||||
<a class="nav-link active" href="#" role="tab">
|
<a class="nav-link active" href="#" role="tab">
|
||||||
<i class="bi bi-sliders"></i>
|
<i class="bi bi-sliders"></i>
|
||||||
@ -157,6 +163,9 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<div class="card-footer bg-transparent">
|
||||||
|
评价:<?= getClickZanBlock('P', $problem['id'], $problem['zan']) ?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php uojIncludeView('sidebar', array()) ?>
|
<?php uojIncludeView('sidebar', array()) ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user