{{template "base/head" .}}
{{template "repo/header" .}}

{{with .task}}
{{TimeSinceUnix1 .CreatedUnix}} {{$.i18n.Tr "repo.modelarts.status"}}: {{.Status}} {{$.i18n.Tr "repo.modelarts.train_job.dura_time"}}: {{ConvertDurationToStr .Duration}}
{{$.i18n.Tr "repo.cloudbrain_task"}}
{{.DisplayJobName}}
{{$.i18n.Tr "repo.modelarts.status"}}
{{.Status}}
{{$.i18n.Tr "repo.cloudbrain_creator"}}
{{.User.Name}}
{{$.i18n.Tr "repo.modelarts.code_version"}}
{{if .BranchName}} {{.BranchName}} {{else}} -- {{end}} {{SubStr .CommitID 0 10}}
{{$.i18n.Tr "repo.modelarts.computing_resources"}}
{{.ComputeResource}}
{{$.i18n.Tr "repo.modelarts.createtime"}}
{{TimeSinceUnix1 .CreatedUnix}}
{{$.i18n.Tr "repo.cloudbrain.time.starttime"}}
{{if not (eq .StartTime 0)}} {{TimeSinceUnix1 .StartTime}} {{else}} -- {{end}}
{{$.i18n.Tr "repo.cloudbrain.time.endtime"}}
{{if not (eq .EndTime 0)}} {{TimeSinceUnix1 .EndTime}} {{else}} -- {{end}}
{{$.i18n.Tr "repo.modelarts.train_job.dura_time"}}
{{if not (eq .Duration 0)}} {{ConvertDurationToStr .Duration}} {{else}} -- {{end}}
{{$.i18n.Tr "cloudbrain.description"}}
{{.Description}}
{{if eq .ComputeResource "CPU/GPU"}} {{end}} {{if eq .ComputeResource "NPU"}} {{end}}
{{$.i18n.Tr "cloudbrain.mirror"}}
{{.EngineName}}
{{$.i18n.Tr "repo.modelarts.train_job.standard"}}
{{$.i18n.Tr "repo.grampus.train_job.ai_center"}}
{{if $.ai_center}}{{$.ai_center}}{{else}}--{{end}}
{{$.i18n.Tr "repo.modelarts.model_name"}}
{{if .ModelName}}{{.ModelName}}{{else}}--{{end}}
{{$.i18n.Tr "repo.modelconvert.modelversion"}}
{{if .ModelVersion}}{{.ModelVersion}}{{else}}--{{end}}
{{$.i18n.Tr "repo.modelarts.infer_job_model_file"}}
{{if .CkptName}}{{.CkptName}}{{else}}--{{end}}
{{$.i18n.Tr "cloudbrain.code_storage_path"}}
{{$.code_path}}
{{$.i18n.Tr "cloudbrain.dataset_storage_path"}}
{{$.dataset_path}}
{{$.i18n.Tr "cloudbrain.model_storage_path"}}
/pretrainmodel
{{$.i18n.Tr "cloudbrain.code_obs_address"}}
{{if .TrainUrl}} {{.TrainUrl}} {{else}} -- {{end}}
{{if $.datasetDownload}} {{if eq .ComputeResource "NPU"}} {{end}} {{$Resource := .ComputeResource}} {{range $k,$v := $.datasetDownload}} {{if eq $Resource "NPU"}} {{end}} {{end}} {{end}}
{{$.i18n.Tr "dataset.file"}}{{$.i18n.Tr "dataset.download_url"}} {{$.i18n.Tr "dataset.download_oper"}}
{{if eq .IsDelete true}} {{.DatasetName}}({{$.i18n.Tr "dataset.file_deleted"}}) {{else}} {{.DatasetName}} {{end}}
{{.DatasetDownloadLink}}
{{if .DatasetDownloadLink}}{{$.i18n.Tr "dataset.download_copy"}}{{end}}
{{if and (eq .ComputeResource "NPU") ($.modelDownload.Name)}}
{{$.i18n.Tr "repo.modelarts.infer_job_model_file"}} {{$.i18n.Tr "dataset.download_model_url"}} {{$.i18n.Tr "dataset.download_oper"}}
{{if eq $.modelDownload.IsDelete true}} {{$.modelDownload.Name}}({{$.i18n.Tr "dataset.file_deleted"}}) {{else}} {{$.modelDownload.Name}} {{end}}
{{$.modelDownload.DownloadLink}}
{{if $.modelDownload.DownloadLink}}{{$.i18n.Tr "dataset.download_copy"}}{{end}}
{{end}}
{{end}} {{template "base/paginate" .}}
{{template "base/footer" .}}