mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: add data-preview (#412)
Co-authored-by: undefined <i@undefined.moe>
This commit is contained in:
1 parent
b7cdadc255
commit
388adbedde
10 files changed
+177
-112
No files matched your search
@@ -30,7 +30,7 @@
|
||||
<input type="checkbox" data-checkbox-group="testdata" data-checkbox-range>
|
||||
</label>
|
||||
</td>
|
||||
<td class="col--name">
|
||||
<td class="col--name" data-preview="testdata">
|
||||
{% if handler.user.own(pdoc) or handler.user.hasPriv(PRIV.PRIV_READ_PROBLEM_DATA) or handler.user.hasPerm(perm.PERM_READ_PROBLEM_DATA) %}
|
||||
<a href="{{ url('problem_file_download', {pid: pdoc.docId, filename: file.name, query:{type:'testdata'} }) }}">{{ file.name }}</a>
|
||||
{% else %}
|
||||
|
||||
Reference in new issue
Block a user