ui: disable some links for instant.page

This commit is contained in:
undefined committed 2021-08-09 13:38:43 +08:00
1 parent d9dc2f2fb6
commit d1f9f54a96
5 files changed
+6 -4

No files matched your search

+1
View File
@@ -2,6 +2,7 @@
/* eslint-disable consistent-return */ /* eslint-disable consistent-return */
require('source-map-support').install();
const os = require('os'); const os = require('os');
const path = require('path'); const path = require('path');
const cluster = require('cluster'); const cluster = require('cluster');
+2 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "hydrooj", "name": "hydrooj",
"version": "2.32.11", "version": "2.32.12",
"bin": "bin/hydrooj.js", "bin": "bin/hydrooj.js",
"main": "src/loader", "main": "src/loader",
"module": "src/loader", "module": "src/loader",
@@ -36,6 +36,7 @@
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"serialize-javascript": "^6.0.0", "serialize-javascript": "^6.0.0",
"sockjs": "^0.3.21", "sockjs": "^0.3.21",
"source-map-support": "^0.5.19",
"superagent": "^6.1.0" "superagent": "^6.1.0"
}, },
"devDependencies": { "devDependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/ui-default", "name": "@hydrooj/ui-default",
"version": "4.16.2", "version": "4.16.3",
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"main": "hydro.js", "main": "hydro.js",
@@ -75,7 +75,7 @@
{% endif %} {% endif %}
{% if handler.user.own(tdoc) or handler.user.hasPriv(PRIV.PRIV_READ_RECORD_CODE) or handler.user.hasPerm(perm.PERM_READ_RECORD_CODE) %} {% if handler.user.own(tdoc) or handler.user.hasPriv(PRIV.PRIV_READ_RECORD_CODE) or handler.user.hasPerm(perm.PERM_READ_RECORD_CODE) %}
{% if model.contest.canShowRecord.call(handler, tdoc, true) %} {% if model.contest.canShowRecord.call(handler, tdoc, true) %}
<li class="menu__item"><a class="menu__link" href="{{ url('contest_code', tid=tdoc.docId) }}"> <li class="menu__item"><a class="menu__link" href="{{ url('contest_code', tid=tdoc.docId) }}" data-no-instant>
<span class="icon icon-download"></span> {{ _('Export All Code') }} <span class="icon icon-download"></span> {{ _('Export All Code') }}
</a></li> </a></li>
{% endif %} {% endif %}
@@ -58,7 +58,7 @@
</a></li> </a></li>
{% endif %} {% endif %}
{% if handler.user.own(tdoc) or handler.user.hasPriv(PRIV.PRIV_READ_RECORD_CODE) or handler.user.hasPerm(perm.PERM_READ_RECORD_CODE) %} {% if handler.user.own(tdoc) or handler.user.hasPriv(PRIV.PRIV_READ_RECORD_CODE) or handler.user.hasPerm(perm.PERM_READ_RECORD_CODE) %}
<li class="menu__item"><a class="menu__link" href="{{ url('homework_code', tid=tdoc.docId) }}"> <li class="menu__item"><a class="menu__link" href="{{ url('homework_code', tid=tdoc.docId) }}" data-no-instant>
<span class="icon icon-download"></span> {{ _('Export All Code') }} <span class="icon icon-download"></span> {{ _('Export All Code') }}
</a></li> </a></li>
{% endif %} {% endif %}