diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index ff0cfedea..e003f5c1a 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -808,10 +808,10 @@ modelarts.train_job.fast_parameter_setting=fast_parameter_setting modelarts.train_job.fast_parameter_setting_config=fast_parameter_setting_config modelarts.train_job.fast_parameter_setting_config_link=fast_parameter_setting_config_link modelarts.train_job.frames=frames -modelarts.train_job.algorithm_origin=算法来源 +modelarts.train_job.algorithm_origin=Algorithm Origin modelarts.train_job.AI_driver=AI Engine modelarts.train_job.start_file=Start File -modelarts.train_job.boot_file_helper=启动文件是您程序执行的入口文件,必须是以.py结尾的文件。 +modelarts.train_job.boot_file_helper=The startup file is the entry file that your program executes, and it must be a file ending in .py modelarts.train_job.dataset=Dataset modelarts.train_job.run_parameter=Run Parameter modelarts.train_job.add_run_parameter=Add Run Parameter @@ -822,8 +822,8 @@ modelarts.train_job.resource_setting_info=resource_setting_info modelarts.train_job.resource_pool=resource_pool modelarts.train_job.resource_type=resource_type modelarts.train_job.standard=Standard -modelarts.train_job.NAS_address=NAS地址 -modelarts.train_job.NAS_mount_path=NAS挂载路径 +modelarts.train_job.NAS_address=NAS Address +modelarts.train_job.NAS_mount_path=NAS Mount Path modelarts.train_job.query_whether_save_parameter=query_whether_save_parameter modelarts.train_job.save_helper=save_helper modelarts.train_job.common_frame=common_frame diff --git a/templates/repo/cloudbrain/index.tmpl b/templates/repo/cloudbrain/index.tmpl index 2201cd272..9099cb17a 100755 --- a/templates/repo/cloudbrain/index.tmpl +++ b/templates/repo/cloudbrain/index.tmpl @@ -254,8 +254,8 @@ Ascend NPU - - {{$.i18n.Tr "repo.modelarts.train_job.new_debug"}} + {{if .Permission.CanWrite $.UnitTypeCloudBrain}} + {{$.i18n.Tr "repo.modelarts.train_job.new_debug"}}{{end}} @@ -357,15 +357,27 @@ {{end}} + {{if $.Permission.CanWrite $.UnitTypeCloudBrain}} {{$.i18n.Tr "repo.debug"}} + {{else}} + + {{$.i18n.Tr "repo.debug"}} + + {{end}}
diff --git a/templates/repo/modelarts/notebook/index.tmpl b/templates/repo/modelarts/notebook/index.tmpl index 721089727..01e2b6545 100755 --- a/templates/repo/modelarts/notebook/index.tmpl +++ b/templates/repo/modelarts/notebook/index.tmpl @@ -224,8 +224,8 @@ Ascend NPU - - {{$.i18n.Tr "repo.modelarts.train_job.new_debug"}} + {{if .Permission.CanWrite $.UnitTypeCloudBrain}} + {{$.i18n.Tr "repo.modelarts.train_job.new_debug"}}{{end}} @@ -310,15 +310,29 @@ @@ -337,9 +351,15 @@ @@ -462,12 +482,16 @@ $('#model-delete-'+jobID).removeClass('red') $('#model-delete-'+jobID).addClass('disabled') } - if(status=="STOPPED" || status=="FAILED"){ + if(status=="STOPPED" || status=="FAILED" ){ $('#stop-model-debug-'+jobID).removeClass('blue') $('#stop-model-debug-'+jobID).addClass('disabled') $('#model-delete-'+jobID).removeClass('disabled') $('#model-delete-'+jobID).addClass('red') } + if(status=="START_FAILED"){ + $('#stop-model-debug-'+jobID).removeClass('blue') + $('#stop-model-debug-'+jobID).addClass('disabled') + } }).fail(function(err) { console.log(err); }); diff --git a/templates/repo/modelarts/trainjob/index.tmpl b/templates/repo/modelarts/trainjob/index.tmpl index eee186b38..4e39920b8 100755 --- a/templates/repo/modelarts/trainjob/index.tmpl +++ b/templates/repo/modelarts/trainjob/index.tmpl @@ -247,8 +247,8 @@ Ascend NPU - - {{$.i18n.Tr "repo.modelarts.train_job.new_train"}} + {{if .Permission.CanWrite $.UnitTypeCloudBrain}} + {{$.i18n.Tr "repo.modelarts.train_job.new_train"}}{{end}} @@ -354,9 +354,15 @@ --> @@ -529,6 +541,10 @@ $('#model-delete-'+jobID).removeClass('disabled') $('#model-delete-'+jobID).addClass('red') } + if(status=="START_FAILED"){ + $('#stop-model-debug-'+jobID).removeClass('blue') + $('#stop-model-debug-'+jobID).addClass('disabled') + } }).fail(function(err) { console.log(err); }); diff --git a/templates/repo/modelarts/trainjob/new.tmpl b/templates/repo/modelarts/trainjob/new.tmpl index 3e3e2fc2a..2121ded2d 100755 --- a/templates/repo/modelarts/trainjob/new.tmpl +++ b/templates/repo/modelarts/trainjob/new.tmpl @@ -165,7 +165,7 @@ -->