mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 12:58:40 +00:00
feat: quick create solution blog
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
704aceb745
commit
f2226dbebf
@ -267,6 +267,11 @@ EOD;
|
||||
<div class="card-body">
|
||||
<?php $add_new_solution_form->printHTML(); ?>
|
||||
</div>
|
||||
<div class="card-footer bg-transparent">
|
||||
<a class="text-decoration-none" href="<?= HTML::blog_url(Auth::id(), '/post/new/write?title=' . urlencode('【题解】#' . $problem['id'] . '. ' . $problem['title']) . '&is_hidden=0') ?>">
|
||||
快速新建文章
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
|
@ -26,11 +26,11 @@
|
||||
);
|
||||
} else {
|
||||
$blog_editor->cur_data = array(
|
||||
'title' => '新博客',
|
||||
'title' => $_GET['title'] ?: '新博客',
|
||||
'content_md' => '',
|
||||
'content' => '',
|
||||
'tags' => array(),
|
||||
'is_hidden' => true
|
||||
'is_hidden' => isset($_GET['is_hidden']) ? $_GET['is_hidden'] : true,
|
||||
);
|
||||
}
|
||||
if ($blog) {
|
||||
|
Loading…
Reference in New Issue
Block a user