Browse Source

首页国际化修改。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.9.2^2
zouap 3 years ago
parent
commit
9c0cd1c091
2 changed files with 9 additions and 1 deletions
  1. +0
    -1
      modules/auth/user_form.go
  2. +9
    -0
      templates/repo/grampus/trainjob/show.tmpl

+ 0
- 1
modules/auth/user_form.go View File

@@ -86,7 +86,6 @@ type RegisterForm struct {
Retype string
GRecaptchaResponse string `form:"g-recaptcha-response"`
Agree bool
InvitaionCode string
}

// Validate valideates the fields


+ 9
- 0
templates/repo/grampus/trainjob/show.tmpl View File

@@ -473,6 +473,15 @@
</div>
</div>
<div class="ui tab" data-tab="second{{$k}}">
<div>
<a id="{{.VersionName}}-log-down"
class='{{if $.canDownload}}ti-download-file{{else}}disabled{{end}}'
href="/api/v1/repos/{{$.RepoRelPath}}/grampus/train-job/{{.ID}}/download_log">
<i class="ri-download-cloud-2-line"></i>
<span style="margin-left: 0.3rem;">{{$.i18n.Tr "repo.modelarts.download_log"}}</span>
</a>

</div>
<div style="position: relative;">
<span>
<a title="{{$.i18n.Tr "repo.log_scroll_start"}}" style="position: absolute; right: -32px;cursor: pointer;"


Loading…
Cancel
Save