feat(web/problem): display uploader

This commit is contained in:
Baoshuo Ren 2022-04-14 09:27:25 +08:00
parent 1ce854744f
commit 6a2915b3a4
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -224,10 +224,13 @@ EOD
$limit = getUOJConf("/var/uoj_data/{$problem['id']}/problem.conf");
$time_limit = $limit['time_limit'];
$memory_limit = $limit['memory_limit'];
$problem_uploader = $limit['poster'] ?: $problem['uploader'];
?>
<div class="row d-flex justify-content-center">
<span class="badge badge-secondary mr-1">时间限制:<?=$time_limit!=null?"$time_limit s":"N/A"?></span>
<span class="badge badge-secondary mr-1">空间限制:<?=$memory_limit!=null?"$memory_limit MB":"N/A"?></span>
<span class="badge badge-secondary mr-1">上传者:<?= $problem_uploader ?: "root" ?></span>
</div>
<div class="float-right">
<?= getClickZanBlock('P', $problem['id'], $problem['zan']) ?>