|
|
|
@ -95,7 +95,7 @@ div[class*=ace_br] {
|
|
|
|
|
<a class="small ui brown button" href="<%= syzoj.utils.makeUrl(['problem', problem.id, 'discussion']) %>" style="position: relative; "> |
|
|
|
|
讨论 |
|
|
|
|
<% if (discussionCount) { %> |
|
|
|
|
<div class="floating ui red tiny circular label"><%= discussionCount %></div> |
|
|
|
|
<div class="floating ui red tiny circular label"><%= discussionCount %></div> |
|
|
|
|
<% } %> |
|
|
|
|
</a> |
|
|
|
|
<a class="small ui yellow button" href="<%= syzoj.utils.makeUrl(['problem', problem.id, 'testdata']) %>">测试数据</a> |
|
|
|
@ -116,6 +116,28 @@ div[class*=ace_br] {
|
|
|
|
|
<% } else { %> |
|
|
|
|
<a class="small ui button" id="public" href-post="<%= syzoj.utils.makeUrl(['problem', problem.id, 'public']) %>">公开</a> |
|
|
|
|
<% } %> |
|
|
|
|
<div class="ui basic modal" id="modal-delete"> |
|
|
|
|
<div class="ui icon header"> |
|
|
|
|
<i class="trash icon"></i> |
|
|
|
|
<p style="margin-top: 15px; ">删除题目</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="content" style="text-align: center; "> |
|
|
|
|
<p>确认删除此题目吗?提交记录、讨论以及测试数据将一并删除。<br> |
|
|
|
|
删除题目导致的修改用户提交、通过数量可能会耗费一些时间。</p> |
|
|
|
|
<b>警告:删除比赛中的题目会导致系统错乱!请确认没有比赛使用此题目。</b> |
|
|
|
|
</div> |
|
|
|
|
<div class="actions"> |
|
|
|
|
<div class="ui red basic cancel inverted button"> |
|
|
|
|
<i class="remove icon"></i> |
|
|
|
|
否 |
|
|
|
|
</div> |
|
|
|
|
<a class="ui green ok inverted button" href-post="<%= syzoj.utils.makeUrl(['problem', problem.id, 'delete']) %>"> |
|
|
|
|
<i class="checkmark icon"></i> |
|
|
|
|
是 |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="small ui red button" onclick="$('#modal-delete').modal('show')">删除</div> |
|
|
|
|
<% } %> |
|
|
|
|
</div> |
|
|
|
|
<% } %> |
|
|
|
|