diff --git a/web/app/controllers/submission.php b/web/app/controllers/submission.php index a0ec0a9..bda16c9 100644 --- a/web/app/controllers/submission.php +++ b/web/app/controllers/submission.php @@ -105,7 +105,7 @@ if (UOJSubmission::cur()->isLatest()) { UOJSubmission::cur()->delete(); }; $delete_form->config['submit_button']['class'] = 'list-group-item list-group-item-action border-start-0 border-end-0 list-group-item-danger'; - $delete_form->config['submit_button']['text'] = ' 删除此提交记录'; + $delete_form->config['submit_button']['text'] = ' 删除此提交记录'; $delete_form->config['submit_container']['class'] = ''; $delete_form->config['confirm']['text'] = '你真的要删除这条提交记录吗?'; $delete_form->succ_href = "/submissions"; @@ -118,7 +118,7 @@ if (UOJSubmission::cur()->isLatest()) { UOJSubmission::cur()->deleteThisMinorVersion(); }; $delete_form->config['submit_button']['class'] = 'list-group-item list-group-item-action border-start-0 border-end-0 list-group-item-danger'; - $delete_form->config['submit_button']['text'] = ' 删除当前历史记录'; + $delete_form->config['submit_button']['text'] = ' 删除当前历史记录'; $delete_form->config['submit_container']['class'] = ''; $delete_form->config['confirm']['text'] = '你真的要删除这条历史记录吗?删除这条历史记录不会影响其他的历史记录。'; $delete_form->succ_href = UOJSubmission::cur()->getUriForLatest(); diff --git a/web/app/models/UOJSubmission.php b/web/app/models/UOJSubmission.php index e5003b4..2013f61 100644 --- a/web/app/models/UOJSubmission.php +++ b/web/app/models/UOJSubmission.php @@ -609,13 +609,17 @@ class UOJSubmission { switch ($id) { case 'submitter': $submitter = UOJUser::query($this->info['submitter']); + $user_profile_url = HTML::url('/user/' . $this->info['submitter']); echo '