Browse Source

fix issue

tags/v1.21.12.1^2
zhoupzh 4 years ago
parent
commit
ce1f6d2e48
5 changed files with 43 additions and 3 deletions
  1. +13
    -1
      templates/repo/cloudbrain/index.tmpl
  2. +13
    -0
      templates/repo/debugjob/index.tmpl
  3. +1
    -1
      templates/repo/modelarts/notebook/index.tmpl
  4. +4
    -0
      templates/repo/modelarts/notebook/new.tmpl
  5. +12
    -1
      templates/repo/modelarts/trainjob/index.tmpl

+ 13
- 1
templates/repo/cloudbrain/index.tmpl View File

@@ -259,7 +259,18 @@
<a class="ui green button" href="{{.RepoLink}}/cloudbrain/create">{{$.i18n.Tr "repo.modelarts.train_job.new_debug"}}</a>{{end}} <a class="ui green button" href="{{.RepoLink}}/cloudbrain/create">{{$.i18n.Tr "repo.modelarts.train_job.new_debug"}}</a>{{end}}
</div> </div>
</div> </div>

{{if eq 0 (len .Tasks)}}
<div class="ui placeholder segment bgtask-none">
<div class="ui icon header bgtask-header-pic"></div>
<div class="bgtask-content-header">未创建过调试任务</div>
<div class="bgtask-content">
<div class="bgtask-content-txt">代码版本:您还没有初始化代码仓库,请先<a href="{{.RepoLink}}">创建代码版本</a>;</div>
<div class="bgtask-content-txt">运行时长:最长不超过4个小时,超过4个小时将自动停止;</div>
<div class="bgtask-content-txt">数据集:云脑1提供 CPU / GPU 资源,云脑2提供 Ascend NPU 资源,调试使用的数据集也需要上传到对应的环境。</div>
<div class="bgtask-content-txt">使用说明:可以参考启智AI协作平台<a href="https://git.openi.org/zeizei/OpenI_Learning">小白训练营课程</a></div>
</div>
</div>
{{else}}
<!-- 中下列表展示区 --> <!-- 中下列表展示区 -->
<div class="ui grid"> <div class="ui grid">
<div class="row"> <div class="row">
@@ -453,6 +464,7 @@
</div> </div>
</div> </div>
</div> </div>
{{end}}


</div> </div>




+ 13
- 0
templates/repo/debugjob/index.tmpl View File

@@ -231,6 +231,18 @@
<a class="ui green button" href="{{.RepoLink}}/cloudbrain/create">{{$.i18n.Tr "repo.modelarts.train_job.new_debug"}}</a>{{end}} <a class="ui green button" href="{{.RepoLink}}/cloudbrain/create">{{$.i18n.Tr "repo.modelarts.train_job.new_debug"}}</a>{{end}}
</div> </div>
</div> </div>
{{if eq 0 (len .Tasks)}}
<div class="ui placeholder segment bgtask-none">
<div class="ui icon header bgtask-header-pic"></div>
<div class="bgtask-content-header">未创建过调试任务</div>
<div class="bgtask-content">
<div class="bgtask-content-txt">代码版本:您还没有初始化代码仓库,请先<a href="{{.RepoLink}}">创建代码版本</a>;</div>
<div class="bgtask-content-txt">运行时长:最长不超过4个小时,超过4个小时将自动停止;</div>
<div class="bgtask-content-txt">数据集:云脑1提供 CPU / GPU 资源,云脑2提供 Ascend NPU 资源,调试使用的数据集也需要上传到对应的环境。</div>
<div class="bgtask-content-txt">使用说明:可以参考启智AI协作平台<a href="https://git.openi.org/zeizei/OpenI_Learning">小白训练营课程</a></div>
</div>
</div>
{{else}}
<!-- 中下列表展示区 --> <!-- 中下列表展示区 -->
<div class="ui grid"> <div class="ui grid">
<div class="row"> <div class="row">
@@ -403,6 +415,7 @@
</div> </div>
</div> </div>
</div> </div>
{{end}}
</div> </div>
</div> </div>
</div> </div>


+ 1
- 1
templates/repo/modelarts/notebook/index.tmpl View File

@@ -231,7 +231,7 @@
{{if eq 0 (len .Tasks)}} {{if eq 0 (len .Tasks)}}
<div class="ui placeholder segment bgtask-none"> <div class="ui placeholder segment bgtask-none">
<div class="ui icon header bgtask-header-pic"></div> <div class="ui icon header bgtask-header-pic"></div>
<div class="bgtask-content-header">未创建过任务</div>
<div class="bgtask-content-header">未创建过调试任务</div>
<div class="bgtask-content"> <div class="bgtask-content">
<div class="bgtask-content-txt">代码版本:您还没有初始化代码仓库,请先<a href="{{.RepoLink}}">创建代码版本</a>;</div> <div class="bgtask-content-txt">代码版本:您还没有初始化代码仓库,请先<a href="{{.RepoLink}}">创建代码版本</a>;</div>
<div class="bgtask-content-txt">运行时长:最长不超过4个小时,超过4个小时将自动停止;</div> <div class="bgtask-content-txt">运行时长:最长不超过4个小时,超过4个小时将自动停止;</div>


+ 4
- 0
templates/repo/modelarts/notebook/new.tmpl View File

@@ -114,6 +114,10 @@
<label>任务名称</label> <label>任务名称</label>
<input name="job_name" id="cloudbrain_job_name" placeholder="任务名称" value="{{.job_name}}" tabindex="3" autofocus required maxlength="254"> <input name="job_name" id="cloudbrain_job_name" placeholder="任务名称" value="{{.job_name}}" tabindex="3" autofocus required maxlength="254">
</div> </div>
<div class="inline required field">
<label>任务名称</label>
<input name="job_name" id="cloudbrain_job_name" placeholder="任务名称" value="{{.job_name}}" tabindex="3" autofocus required maxlength="254">
</div>


<div class="inline field"> <div class="inline field">
<label>数据集</label> <label>数据集</label>


+ 12
- 1
templates/repo/modelarts/trainjob/index.tmpl View File

@@ -219,7 +219,17 @@
<a class="ui green button" href="{{.RepoLink}}/modelarts/train-job/create">{{$.i18n.Tr "repo.modelarts.train_job.new_train"}}</a>{{end}} <a class="ui green button" href="{{.RepoLink}}/modelarts/train-job/create">{{$.i18n.Tr "repo.modelarts.train_job.new_train"}}</a>{{end}}
</div> </div>
</div> </div>

{{if eq 0 (len .Tasks)}}
<div class="ui placeholder segment bgtask-none">
<div class="ui icon header bgtask-header-pic"></div>
<div class="bgtask-content-header">未创建过训练任务</div>
<div class="bgtask-content">
<div class="bgtask-content-txt">代码版本:您还没有初始化代码仓库,请先<a href="{{.RepoLink}}">创建代码版本</a>;</div>
<div class="bgtask-content-txt">数据集:云脑1提供 CPU / GPU 资源,云脑2提供 Ascend NPU 资源,调试使用的数据集也需要上传到对应的环境。</div>
<div class="bgtask-content-txt">使用说明:可以参考启智AI协作平台<a href="https://git.openi.org/zeizei/OpenI_Learning">小白训练营课程</a></div>
</div>
</div>
{{else}}
<!-- 中下列表展示区 --> <!-- 中下列表展示区 -->
<div class="ui grid"> <div class="ui grid">
<div class="row"> <div class="row">
@@ -335,6 +345,7 @@
</div> </div>
</div> </div>
</div> </div>
{{end}}


</div> </div>




Loading…
Cancel
Save