| @@ -190,11 +190,11 @@ td, th { | |||||
| </a> | </a> | ||||
| <div class="divider"> / </div> | <div class="divider"> / </div> | ||||
| {{with .task}} | {{with .task}} | ||||
| <div class="active section">{{.DisplayJobName}}</div> | |||||
| {{end}} | |||||
| <div class="active section">{{.jobName}}</div> | |||||
| {{end}} | |||||
| </div> | </div> | ||||
| </h4> | </h4> | ||||
| {{with .task}} | |||||
| <div class="ui accordion border-according" id="accordion" data-repopath="" data-jobid="" data-version=""> | <div class="ui accordion border-according" id="accordion" data-repopath="" data-jobid="" data-version=""> | ||||
| <div class="active title padding0"> | <div class="active title padding0"> | ||||
| <div class="according-panel-heading"> | <div class="according-panel-heading"> | ||||
| @@ -204,7 +204,7 @@ td, th { | |||||
| <span> | <span> | ||||
| <div class="ac-display-inblock title_text acc-margin-bottom"> | <div class="ac-display-inblock title_text acc-margin-bottom"> | ||||
| <span class="cti-mgRight-sm"> | <span class="cti-mgRight-sm"> | ||||
| {{if not (eq .StartTime 0)}} | |||||
| {{if not (eq .task.StartTime 0)}} | |||||
| <td>{{TimeSinceUnix1 .StartTime}}</td> | <td>{{TimeSinceUnix1 .StartTime}}</td> | ||||
| {{else}} | {{else}} | ||||
| <td>{{TimeSinceUnix1 .CreatedUnix}}<td> | <td>{{TimeSinceUnix1 .CreatedUnix}}<td> | ||||
| @@ -241,7 +241,7 @@ td, th { | |||||
| </td> | </td> | ||||
| <td class="ti-text-form-content"> | <td class="ti-text-form-content"> | ||||
| <div class="text-span text-span-w"> | <div class="text-span text-span-w"> | ||||
| {{.DisplayJobName}} | |||||
| {{.jobName}} | |||||
| </div> | </div> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| @@ -327,7 +327,7 @@ td, th { | |||||
| <td class="ti-text-form-content"> | <td class="ti-text-form-content"> | ||||
| <div class="text-span text-span-w" id="{{.VersionName}}-BenchmarkTypeName"> | <div class="text-span text-span-w" id="{{.VersionName}}-BenchmarkTypeName"> | ||||
| {{if not (eq .StartTime 0)}} | |||||
| {{if not (eq .task.StartTime 0)}} | |||||
| {{TimeSinceUnix1 .EndTime}} | {{TimeSinceUnix1 .EndTime}} | ||||
| {{else}} | {{else}} | ||||
| -- | -- | ||||
| @@ -397,6 +397,7 @@ td, th { | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| {{end}} | |||||
| {{template "base/paginate" .}} | {{template "base/paginate" .}} | ||||
| </div> | </div> | ||||
| <!-- 确认模态框 --> | <!-- 确认模态框 --> | ||||
| @@ -445,17 +446,6 @@ td, th { | |||||
| jobName = urlArr.slice(-1)[0] | 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" | |||||
| }); | |||||
| } | |||||
| </script> | </script> | ||||