feat(web/problem-set): own problem

This commit is contained in:
Baoshuo Ren 2022-04-14 09:31:33 +08:00
parent 6a2915b3a4
commit 4f6842a654
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -41,6 +41,9 @@
if ($problem['is_hidden']) {
echo ' <span class="text-danger">[隐藏]</span> ';
}
if ($problem['uploader'] == $myUser['username']) {
echo ' <span class="text-info">[我的题目]</span> ';
}
echo '<a href="/problem/', $problem['id'], '">', $problem['title'], '</a>';
if (isset($_COOKIE['show_tags_mode'])) {
foreach (queryProblemTags($problem['id']) as $tag) {