Browse Source

Merge branch 'liuzx_trainjob' of https://git.openi.org.cn/OpenI/aiforge into liuzx_trainjob

:update
pull/967/head
liuzx 3 years ago
parent
commit
579dcd027f
7 changed files with 9 additions and 12 deletions
  1. +1
    -1
      templates/repo/create.tmpl
  2. +1
    -1
      templates/repo/migrate.tmpl
  3. +0
    -2
      templates/repo/modelarts/trainjob/show.tmpl
  4. +4
    -5
      templates/repo/modelarts/trainjob/version_new.tmpl
  5. +1
    -1
      templates/repo/pulls/fork.tmpl
  6. +1
    -1
      templates/repo/settings/options.tmpl
  7. +1
    -1
      templates/user/settings/profile.tmpl

+ 1
- 1
templates/repo/create.tmpl View File

@@ -54,7 +54,7 @@
</div>
<div class="inline field {{if .Err_Description}}error{{end}}">
<label for="description">{{.i18n.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description">{{.description}}</textarea>
<textarea id="description" name="description" maxlength="255">{{.description}}</textarea>
</div>
<div class="inline field">
<label>{{.i18n.Tr "repo.template"}}</label>


+ 1
- 1
templates/repo/migrate.tmpl View File

@@ -122,7 +122,7 @@
</div>
<div class="inline field {{if .Err_Description}}error{{end}}">
<label for="description">{{.i18n.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description">{{.description}}</textarea>
<textarea id="description" name="description" maxlength="255">{{.description}}</textarea>
</div>

<div class="inline field">


+ 0
- 2
templates/repo/modelarts/trainjob/show.tmpl View File

@@ -549,7 +549,6 @@ td, th {

function refreshStatus(version_name){
$.get(`/api/v1/repos/${userName}/${repoPath}/modelarts/train-job/${jobID}?version_name=${version_name}`,(data)=>{
console.log(data)
// header status and duration
$(`#${version_name}-duration-span`).text(data.JobDuration)
$(`#${version_name}-status-span span`).text(data.JobStatus)
@@ -714,7 +713,6 @@ td, th {
let scrollTop = container.scrollTop
let scrollHeight = container.scrollHeight
let clientHeight = container.clientHeight
console.log(scrollTop,scrollHeight,clientHeight)
if(parseInt(scrollTop) + clientHeight == scrollHeight || parseInt(scrollTop) + clientHeight +1 == scrollHeight || parseInt(scrollTop) + clientHeight - 1 == scrollHeight){
let end_line = $(`#log${version_name} input[name=end_line]`).val()
$.get(`/api/v1/repos/${userName}/${repoPath}/modelarts/train-job/${jobID}/log?version_name=${version_name}&base_line=${end_line}&lines=50&order=desc`, (data) => {


+ 4
- 5
templates/repo/modelarts/trainjob/version_new.tmpl View File

@@ -528,8 +528,8 @@
identifier : 'run_para_list',
rules: [
{
type: 'maxLength[256]',
prompt : '所有字符最长不超过256个字符。'
type: 'maxLength[255]',
prompt : '所有字符最长不超过255个字符。'
}
]
},
@@ -585,8 +585,8 @@
identifier : 'run_para_list',
rules: [
{
type: 'maxLength[256]',
prompt : '所有字符最长不超过256个字符。'
type: 'maxLength[255]',
prompt : '所有字符最长不超过255个字符。'
}
]
},
@@ -621,7 +621,6 @@
function get_name(){
let name1=$("#engine_name .text").text()
let name2=$("#flaver_name .text").text()
console.log(name1,name2)
$("input#ai_engine_name").val(name1)
$("input#ai_flaver_name").val(name2)



+ 1
- 1
templates/repo/pulls/fork.tmpl View File

@@ -53,7 +53,7 @@
</div>
<div class="inline field {{if .Err_Description}}error{{end}}">
<label for="description">{{.i18n.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description">{{.description}}</textarea>
<textarea id="description" name="description" maxlength="255">{{.description}}</textarea>
</div>

<div class="inline field">


+ 1
- 1
templates/repo/settings/options.tmpl View File

@@ -41,7 +41,7 @@
{{end}}
<div class="field {{if .Err_Description}}error{{end}}">
<label for="description">{{$.i18n.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" rows="2">{{.Repository.Description}}</textarea>
<textarea id="description" name="description" rows="2" maxlength="255">{{.Repository.Description}}</textarea>
</div>
<div class="field {{if .Err_Website}}error{{end}}">
<label for="website">{{.i18n.Tr "repo.settings.site"}}</label>


+ 1
- 1
templates/user/settings/profile.tmpl View File

@@ -34,7 +34,7 @@
</div>
<div class="field {{if .Err_Description}}error{{end}}">
<label for="description">{{$.i18n.Tr "user.user_bio"}}</label>
<textarea id="description" name="description" rows="2">{{.SignedUser.Description}}</textarea>
<textarea id="description" name="description" rows="2" maxlength="255">{{.SignedUser.Description}}</textarea>
</div>
<div class="field {{if .Err_Website}}error{{end}}">
<label for="website">{{.i18n.Tr "settings.website"}}</label>


Loading…
Cancel
Save