Skip to content

Commit

Permalink
ui: add show source button
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined-moe committed Jan 7, 2025
1 parent 214fa2a commit 38179e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/ui-default/locales/zh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,7 @@ Sorry, there are no users in this domain.: 对不起,此域中没有用户。
Sorry: 对不起
Sort by: 排序
Source type: 来源类型
Source: 来源
Standard mode: 标准模式
Standard Program: 标准程序
Star Topic: 收藏讨论
Expand Down
2 changes: 2 additions & 0 deletions packages/ui-default/templates/problem_files.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ <h1 class="section__title">{{ _('Testdata') }}</h1>
<a href="{{ url('problem_config', pid=pdoc.docId) }}" class="primary rounded button">{{ _('Config') }}</a>
<button class="primary rounded button" name="create_testdata">{{ _('Create') }}</button>
<button class="primary rounded button" name="upload_testdata">{{ _('Upload') }}</button>
{% else %}
<a href="{{ url('problem_detail', domainId=pdoc.reference.domainId, pid=pdoc.reference.pid) }}" class="primary rounded button">{{ _('Source') }}</a>
{% endif %}
</div>
</div>
Expand Down

0 comments on commit 38179e8

Please sign in to comment.