- {{if ne .DecompressState 3}}{{$.i18n.Tr "dataset.unzip_status"}}:{{if eq .DecompressState 1}}{{$.i18n.Tr "dataset.unzip_successed"}}{{else if eq .DecompressState 0}}{{$.i18n.Tr "dataset.unzip_stared"}}{{else}}{{$.i18n.Tr "dataset.unzip_failed"}}{{end}}
+ {{if ne .DecompressState -1}}{{$.i18n.Tr "dataset.unzip_status"}}:{{if eq .DecompressState 1}}{{$.i18n.Tr "dataset.unzip_successed"}}{{else if eq .DecompressState 0 2}}{{$.i18n.Tr "dataset.unzip_stared"}}{{else}}{{$.i18n.Tr "dataset.unzip_failed"}}{{end}}
{{end}}{{$.i18n.Tr "dataset.download"}}:{{.DownloadCount}}
{{if .Description}} {{$.i18n.Tr "dataset.description"}}:{{.Description}}{{end}}
@@ -288,10 +288,10 @@
{{if eq .DecompressState 1}}
- {{else if eq .DecompressState 0}}
+ {{else if eq .DecompressState 0 2}}
- {{else if eq .DecompressState 2}}
+ {{else if eq .DecompressState 3}}
{{else}}
diff --git a/templates/repo/modelarts/trainjob/show.tmpl b/templates/repo/modelarts/trainjob/show.tmpl
index 580940289..f22a2ce56 100755
--- a/templates/repo/modelarts/trainjob/show.tmpl
+++ b/templates/repo/modelarts/trainjob/show.tmpl
@@ -487,8 +487,8 @@
-
-
{{$.i18n.Tr "repo.modelarts.download_log"}}
@@ -734,6 +734,12 @@
// detail status and duration
$('#' + version_name + '-duration').text(data.JobDuration)
$('#' + version_name + '-status').text(data.JobStatus)
+ console.log(data)
+ if (["KILLED", "FAILED", "START_FAILED", "STOPPED", "COMPLETED"].includes(data.JobStatus)) {
+ $(`#${version_name}-log-down`).removeClass('disabled').addClass('ti-download-file')
+ $('#' + version_name + '-stop').addClass('disabled')
+ }
+
loadLog(version_name)
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 11bb9835d..c7d77bdb4 100755
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -1214,7 +1214,7 @@ async function initRepository() {
files: $attachments
},
(data) => {
- if (data.length === 0) {
+ if (data.length === 0 || data.content === '') {
$renderContent.html($('#no-content').html());
} else {
$renderContent.html(data.content);
@@ -1225,7 +1225,7 @@ async function initRepository() {
let imageShow = ''
const $content = $segment.parent();
if (!$content.find('.ui.small.images').length) {
- if (data.attachments !== '') {
+ if (data.attachments !== '' && data.attachments) {
if ($content.find('.ui.middle.aligned').length === 0) {
imageShow += ''
imageShow += ''