diff --git a/templates/repo/modelarts/notebook/show.tmpl b/templates/repo/modelarts/notebook/show.tmpl index d9c38eb44..4b4446587 100755 --- a/templates/repo/modelarts/notebook/show.tmpl +++ b/templates/repo/modelarts/notebook/show.tmpl @@ -190,11 +190,11 @@ td, th {
/
{{with .task}} -
{{.DisplayJobName}}
- {{end}} +
{{.jobName}}
+ {{end}} - + {{with .task}}
@@ -204,7 +204,7 @@ td, th {
- {{if not (eq .StartTime 0)}} + {{if not (eq .task.StartTime 0)}} {{TimeSinceUnix1 .StartTime}} {{else}} {{TimeSinceUnix1 .CreatedUnix}} @@ -241,7 +241,7 @@ td, th {
- {{.DisplayJobName}} + {{.jobName}}
@@ -327,7 +327,7 @@ td, th {
- {{if not (eq .StartTime 0)}} + {{if not (eq .task.StartTime 0)}} {{TimeSinceUnix1 .EndTime}} {{else}} -- @@ -397,6 +397,7 @@ td, th {
+ {{end}} {{template "base/paginate" .}}
@@ -445,17 +446,6 @@ td, th { jobName = urlArr.slice(-1)[0] }) - function loadLog(version_name){ - document.getElementById("mask").style.display = "block" - $.get(`/api/v1/repos/${userName}/${repoPath}/cloudbrain/${jobName}/log?version_name=${version_name}&lines=50&order=asc`, (data) => { - $('input[name=end_line]').val(data.EndLine) - $('input[name=start_line]').val(data.StartLine) - $(`#log_file${version_name}`).text(data.Content) - document.getElementById("mask").style.display = "none" - }).fail(function(err) { - console.log(err); - document.getElementById("mask").style.display = "none" - }); - } +