Browse Source

修改界面Bug

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
14088cd81e
3 changed files with 5 additions and 4 deletions
  1. +1
    -0
      routers/repo/ai_model_convert.go
  2. +3
    -3
      templates/repo/modelmanage/convertIndex.tmpl
  3. +1
    -1
      templates/repo/modelmanage/index.tmpl

+ 1
- 0
routers/repo/ai_model_convert.go View File

@@ -585,6 +585,7 @@ func ShowModelConvertInfo(ctx *context.Context) {

func ConvertModelTemplate(ctx *context.Context) {
ctx.Data["isModelManage"] = true
ctx.Data["TRAIN_COUNT"] = 0
SetModelCount(ctx)
ctx.Data["ModelManageAccess"] = ctx.Repo.CanWrite(models.UnitTypeModelManage)
ShowModelConvertPageInfo(ctx)


+ 3
- 3
templates/repo/modelmanage/convertIndex.tmpl View File

@@ -26,7 +26,7 @@
<div class="repository release dataset-list view">
{{template "repo/header" .}}
<!-- 列表容器 -->
<div class="ui container {{if ne $.MODEL_COUNT 0}}active loader {{end}}" id="loadContainer">
<div class="ui container {{if ne .MODEL_COUNT 0}}active loader {{end}}" id="loadContainer">
{{template "base/alert" .}}
<div class="ui two column stackable grid">
<div class="column">
@@ -40,12 +40,12 @@
<a class="ui button {{if .Permission.CanWrite $.UnitTypeModelManage}} green {{else}} disabled {{end}}" onclick="showcreate(this)">{{$.i18n.Tr "repo.model.manage.create_new_convert_task"}}</a>
</div>
</div>
{{if eq $.MODEL_CONVERT_COUNT 0}}
{{if eq .MODEL_CONVERT_COUNT 0}}
<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">
{{if eq $.MODEL_COUNT 0}}
{{if eq .MODEL_COUNT 0}}
<div class="bgtask-content-txt">请您先导入<a href="{{.RepoLink}}/modelmanage/show_model">模型</a>,然后再对其进行转换。</div>
{{end}}
<div class="bgtask-content-txt">使用说明:可以参考启智AI协作平台<a


+ 1
- 1
templates/repo/modelmanage/index.tmpl View File

@@ -221,7 +221,7 @@
</div>
</div>

<div class="inline field" style="margin-left: 75px;">
<div class="inline field" style="margin-left: 100px;">
<button id="submitId" type="button" class="ui create_train_job green button"
style="position: absolute;">
{{.i18n.Tr "repo.model.manage.sava_model"}}


Loading…
Cancel
Save