fix(problem): tags text-align

This commit is contained in:
Baoshuo Ren 2023-02-13 11:35:08 +08:00
parent aa4a2fa2d1
commit 0a16538df8
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -458,7 +458,7 @@ if (UOJContest::cur()) {
<span class="flex-shrink-0"> <span class="flex-shrink-0">
<?= UOJLocale::get('problems::uploader') ?> <?= UOJLocale::get('problems::uploader') ?>
</span> </span>
<span> <span class="text-end">
<?= UOJProblem::cur()->getUploaderLink() ?> <?= UOJProblem::cur()->getUploaderLink() ?>
</span> </span>
</li> </li>
@ -466,7 +466,7 @@ if (UOJContest::cur()) {
<span class="flex-shrink-0"> <span class="flex-shrink-0">
<?= UOJLocale::get('problems::problem source') ?> <?= UOJLocale::get('problems::problem source') ?>
</span> </span>
<span> <span class="text-end">
<?= UOJProblem::cur()->getProviderLink() ?> <?= UOJProblem::cur()->getProviderLink() ?>
</span> </span>
</li> </li>
@ -475,7 +475,7 @@ if (UOJContest::cur()) {
<span class="flex-shrink-0"> <span class="flex-shrink-0">
<?= UOJLocale::get('problems::difficulty') ?> <?= UOJLocale::get('problems::difficulty') ?>
</span> </span>
<span> <span class="text-end">
<?= UOJProblem::cur()->getDifficultyHTML() ?> <?= UOJProblem::cur()->getDifficultyHTML() ?>
</span> </span>
</li> </li>
@ -484,9 +484,9 @@ if (UOJContest::cur()) {
<span class="flex-shrink-0"> <span class="flex-shrink-0">
<?= UOJLocale::get('problems::historical score') ?> <?= UOJLocale::get('problems::historical score') ?>
</span> </span>
<?php $his_score = DB::selectSingle(["select max(score)", "from submissions", "where", ["problem_id" => UOJProblem::info('id'), "submitter" => Auth::id()]]) ?>
<a class="<?= is_null($his_score) ? '' : 'uoj-score' ?>" href="<?= HTML::url('/submissions', ['params' => ['problem_id' => UOJProblem::info('id'), 'submitter' => Auth::id()]]) ?>"> <?php $his_score = DB::selectSingle(["select max(score)", "from submissions", "where", ["problem_id" => UOJProblem::info('id'), "submitter" => Auth::id()]]) ?>
<a class="<?= is_null($his_score) ? '' : 'uoj-score' ?> text-end" href="<?= HTML::url('/submissions', ['params' => ['problem_id' => UOJProblem::info('id'), 'submitter' => Auth::id()]]) ?>">
<?= is_null($his_score) ? '无' : UOJSubmission::roundedScore($his_score) ?> <?= is_null($his_score) ? '无' : UOJSubmission::roundedScore($his_score) ?>
</a> </a>
</li> </li>
@ -495,7 +495,7 @@ if (UOJContest::cur()) {
<span class="flex-shrink-0"> <span class="flex-shrink-0">
<?= UOJLocale::get('problems::tags') ?> <?= UOJLocale::get('problems::tags') ?>
</span> </span>
<span> <span class="text-end">
<?php if (UOJProblem::info('is_hidden')) : ?> <?php if (UOJProblem::info('is_hidden')) : ?>
<a href="<?= HTML::url('/problems', ['params' => ['is_hidden' => 'on']]) ?>"> <a href="<?= HTML::url('/problems', ['params' => ['is_hidden' => 'on']]) ?>">
<span class="badge text-bg-danger"> <span class="badge text-bg-danger">
@ -518,7 +518,7 @@ if (UOJContest::cur()) {
<span class="flex-shrink-0"> <span class="flex-shrink-0">
<?= UOJLocale::get('appraisal') ?> <?= UOJLocale::get('appraisal') ?>
</span> </span>
<span> <span class="text-end">
<?= UOJProblem::cur()->getZanBlock() ?> <?= UOJProblem::cur()->getZanBlock() ?>
</span> </span>
</li> </li>