mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 20:48:41 +00:00
feat(web/problem/solution): add some hints
This commit is contained in:
parent
352642b06c
commit
4cccd07a10
@ -275,21 +275,24 @@ EOD;
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if (isset($add_new_solution_form)): ?>
|
|
||||||
<div class="card card-default mb-2">
|
<div class="card card-default mb-2">
|
||||||
<div class="card-header bg-transparent fw-bold">
|
<div class="card-header bg-transparent fw-bold">
|
||||||
增加题解
|
增加题解
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<?php $add_new_solution_form->printHTML(); ?>
|
<?php if (isset($add_new_solution_form)): ?>
|
||||||
|
<?php $add_new_solution_form->printHTML(); ?>
|
||||||
|
<?php else: ?>
|
||||||
|
您当前无法为本题新增题解。
|
||||||
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer bg-transparent">
|
<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 target="_blank" class="text-decoration-none" href="<?= HTML::blog_url(Auth::id(), '/post/new/write?title=' . urlencode('【题解】#' . $problem['id'] . '. ' . $problem['title']) . '&is_hidden=0&add_solution_for=' . $problem['id']) ?>">
|
||||||
快速新建文章
|
快速新建文章
|
||||||
</a>
|
</a>
|
||||||
|
<div class="small text-muted mt-1">发布文章后,请返回本页输入博客 ID</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
|
||||||
|
|
||||||
<?php uojIncludeView('sidebar', array()); ?>
|
<?php uojIncludeView('sidebar', array()); ?>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user