Skip to content

Commit

Permalink
Make current data origin more clearly in upload page for copied probl…
Browse files Browse the repository at this point in the history
…ems (#517)
  • Loading branch information
moesoha authored May 16, 2019
1 parent b85e819 commit e669d3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions vj4/locale/zh_CN.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,7 @@ Copy: 复制
Destination Domain: 目标域
Domain ID: 域 ID
Test data comes from: 测试数据来自
Current dataset comes from: 当前数据集来自
Copy Problem To: 将题目复制到
What's this?: 这是什么?
About test data: 关于测试数据
Expand Down
2 changes: 1 addition & 1 deletion vj4/ui/templates/problem_upload.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% block body %}
<form method="post" enctype="multipart/form-data">
{% if pdoc['data'] is mapping %}
<p>{{ _('Test data comes from') }} <a href="{{ reverse_url('problem_detail', domain_id=pdoc['data']['domain'], pid=pdoc['data']['pid']) }}" target="_blank">{{ pdoc['data']['domain'] }}/{{ pdoc['data']['pid'] }}</a></p>
<p><b>{{ _('Current dataset comes from') }} <a href="{{ reverse_url('problem_detail', domain_id=pdoc['data']['domain'], pid=pdoc['data']['pid']) }}" target="_blank">{{ pdoc['data']['domain'] }}/{{ pdoc['data']['pid'] }}</a></b></p>
{% else %}
<p>{{ _('Current dataset: {0}').format(pdoc['data']|default(_('(None)'))) }}</p>
<p>{{ _('MD5: {0}').format(md5|default(_('(None)'))) }}</p>
Expand Down

0 comments on commit e669d3c

Please sign in to comment.