core&ui: contest correction mode

This commit is contained in:
undefined committed 2025-06-30 16:46:33 +08:00
1 parent a9215698f9
commit e479cb94ea
10 files changed
+56 -16

No files matched your search

@@ -28,7 +28,7 @@
<li class="menu__seperator"></li>
{% endif %}
{% if page_name == 'problem_detail' %}
{% if handler.user.hasPerm(perm.PERM_SUBMIT_PROBLEM) %}
{% if handler.user.hasPerm(perm.PERM_SUBMIT_PROBLEM) and handler.ctx.setting.get('ui-default.enableScratchpad') %}
<li class="menu__item scratchpad--hide nojs--hide"><a class="menu__link highlight" name="problem-sidebar__open-scratchpad" href="javascript:;" data-global-hotkey="alt+e">
<span class="icon icon-enlarge"></span> {{ _('Open Scratchpad') }} (Alt+E)
</a></li>