Browse Source

增加接口

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.4.1^2
zouap 3 years ago
parent
commit
c9b78df4da
4 changed files with 41 additions and 2 deletions
  1. +1
    -0
      options/locale/locale_en-US.ini
  2. +1
    -0
      options/locale/locale_zh-CN.ini
  3. +3
    -0
      routers/repo/cloudbrain.go
  4. +36
    -2
      templates/repo/cloudbrain/show.tmpl

+ 1
- 0
options/locale/locale_en-US.ini View File

@@ -912,6 +912,7 @@ datasets = Datasets
datasets.desc = Enable Dataset datasets.desc = Enable Dataset
cloudbrain_helper=Use GPU/NPU resources to open notebooks, model training tasks, etc. cloudbrain_helper=Use GPU/NPU resources to open notebooks, model training tasks, etc.
cloudbrain.exitinfo=Exit Information cloudbrain.exitinfo=Exit Information
cloudbrain.platform=Platform
model_manager = Model model_manager = Model
model_noright=No right model_noright=No right
model_rename=Duplicate model name, please modify model name. model_rename=Duplicate model name, please modify model name.


+ 1
- 0
options/locale/locale_zh-CN.ini View File

@@ -959,6 +959,7 @@ cloudbrain_query_fail=查询云脑任务失败。
cloudbrain.mirror_tag = 镜像标签 cloudbrain.mirror_tag = 镜像标签
cloudbrain.mirror_description = 镜像描述 cloudbrain.mirror_description = 镜像描述
cloudbrain.exitinfo=退出信息 cloudbrain.exitinfo=退出信息
cloudbrain.platform=平台


record_begintime_get_err=无法获取统计开始时间。 record_begintime_get_err=无法获取统计开始时间。
parameter_is_wrong=输入参数错误,请检查输入参数。 parameter_is_wrong=输入参数错误,请检查输入参数。


+ 3
- 0
routers/repo/cloudbrain.go View File

@@ -525,6 +525,9 @@ func cloudBrainShow(ctx *context.Context, tpName base.TplName, jobType models.Jo
version_list_task = append(version_list_task, task) version_list_task = append(version_list_task, task)
ctx.Data["version_list_task"] = version_list_task ctx.Data["version_list_task"] = version_list_task
ctx.Data["debugListType"] = debugListType ctx.Data["debugListType"] = debugListType
ctx.Data["code_path"] = cloudbrain.CodeMountPath
ctx.Data["dataset_path"] = cloudbrain.DataSetMountPath
ctx.Data["model_path"] = cloudbrain.ModelMountPath
ctx.Data["canDownload"] = cloudbrain.CanDeleteJob(ctx, task) ctx.Data["canDownload"] = cloudbrain.CanDeleteJob(ctx, task)
ctx.HTML(200, tpName) ctx.HTML(200, tpName)
} }


+ 36
- 2
templates/repo/cloudbrain/show.tmpl View File

@@ -295,6 +295,30 @@ td, th {
</div> </div>
</td> </td>
</tr> </tr>

<tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80">
{{$.i18n.Tr "cloudbrain.dataset_storage_path"}}
</td>

<td class="ti-text-form-content">
<div class="text-span text-span-w" id="dataset_storage_path">
{{$.dataset_path}}
</div>
</td>
</tr>

<tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80">
{{$.i18n.Tr ""cloudbrain.code_storage_path"}}
</td>

<td class="ti-text-form-content">
<div class="text-span text-span-w" id="code_storage_path">
{{$.code_path}}
</div>
</td>
</tr>
</tbody> </tbody>
</table> </table>
@@ -306,7 +330,7 @@ td, th {


<tr class="ti-no-ng-animate"> <tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80"> <td class="ti-no-ng-animate ti-text-form-label text-width80">
平台
{{$.i18n.Tr "repo.cloudbrain.platform"}}
</td> </td>


<td class="ti-text-form-content"> <td class="ti-text-form-content">
@@ -362,7 +386,17 @@ td, th {
</div> </div>
</td> </td>
</tr> </tr>
<tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80">
{{$.i18n.Tr "cloudbrain.model_storage_path"}}
</td>

<td class="ti-text-form-content">
<div class="text-span text-span-w" id="model_storage_path">
{{$.model_path}}
</div>
</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>


Loading…
Cancel
Save