feat: add page title
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-09-24 13:39:55 +08:00
parent 86ec60fa3a
commit edef725860
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
4 changed files with 35 additions and 2 deletions

View File

@ -68,6 +68,12 @@ EOD;
} }
?> ?>
<?php echoUOJPageHeader(UOJLocale::get('contests')) ?> <?php echoUOJPageHeader(UOJLocale::get('contests')) ?>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<div class="d-flex justify-content-between">
<?php endif ?>
<h1 class="h2">
<?= UOJLocale::get('contests') ?>
</h1>
<?php <?php
if (isSuperUser($myUser)) { if (isSuperUser($myUser)) {
if (isset($REQUIRE_LIB['bootstrap5'])) { if (isset($REQUIRE_LIB['bootstrap5'])) {
@ -79,6 +85,10 @@ if (isSuperUser($myUser)) {
echo '</div>'; echo '</div>';
} }
?> ?>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
</div>
<?php endif ?>
<h4><?= UOJLocale::get('contests::current or upcoming contests') ?></h4> <h4><?= UOJLocale::get('contests::current or upcoming contests') ?></h4>
<?php <?php
$table_header = ''; $table_header = '';

View File

@ -71,6 +71,14 @@
<?php echoUOJPageHeader(UOJLocale::get('problems lists')) ?> <?php echoUOJPageHeader(UOJLocale::get('problems lists')) ?>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<div class="d-flex justify-content-between">
<?php endif ?>
<h1 class="h2">
<?= UOJLocale::get('problems lists') ?>
</h1>
<?php if (isSuperUser($myUser)): ?> <?php if (isSuperUser($myUser)): ?>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?> <?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<div class="text-end mb-2"> <div class="text-end mb-2">
@ -78,7 +86,8 @@
<?php $new_list_form->printHTML(); ?> <?php $new_list_form->printHTML(); ?>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?> <?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
</div> </div>
<?php endif ?> </div>
<?php endif ?>
<?php endif ?> <?php endif ?>
<?php <?php

View File

@ -158,6 +158,14 @@ EOD;
: array('table', 'table-bordered', 'table-hover', 'table-striped'); : array('table', 'table-bordered', 'table-hover', 'table-striped');
?> ?>
<?php echoUOJPageHeader(UOJLocale::get('problems')) ?> <?php echoUOJPageHeader(UOJLocale::get('problems')) ?>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<div class="d-flex justify-content-between">
<?php endif ?>
<h1 class="h2">
<?= UOJLocale::get('problems') ?>
</h1>
<?php if (isSuperUser($myUser) || isProblemManager($myUser) || isProblemUploader($myUser)): ?> <?php if (isSuperUser($myUser) || isProblemManager($myUser) || isProblemUploader($myUser)): ?>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?> <?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<div class="text-end"> <div class="text-end">
@ -165,7 +173,8 @@ EOD;
<?php $new_problem_form->printHTML(); ?> <?php $new_problem_form->printHTML(); ?>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?> <?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
</div> </div>
<?php endif ?> </div>
<?php endif ?>
<?php endif ?> <?php endif ?>
<div class="row"> <div class="row">
<div class="col-sm-4"> <div class="col-sm-4">

View File

@ -44,6 +44,11 @@
} }
?> ?>
<?php echoUOJPageHeader(UOJLocale::get('submissions')) ?> <?php echoUOJPageHeader(UOJLocale::get('submissions')) ?>
<h1 class="h2">
<?= UOJLocale::get('submissions') ?>
</h1>
<div class="d-none d-sm-block"> <div class="d-none d-sm-block">
<?php if ($myUser != null): ?> <?php if ($myUser != null): ?>
<div class="float-right"> <div class="float-right">