Browse Source

提交测试代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.21.12.1^2
zouap 3 years ago
parent
commit
57533f630d
2 changed files with 3 additions and 2 deletions
  1. +3
    -0
      routers/routes/routes.go
  2. +0
    -2
      templates/repo/modelmanage/index.tmpl

+ 3
- 0
routers/routes/routes.go View File

@@ -962,6 +962,9 @@ func RegisterRoutes(m *macaron.Macaron) {
}, context.RepoRef())
m.Group("/modelmanage", func() {
m.Get("", reqRepoCloudBrainReader, repo.ShowModelPageInfo)
m.Group("/:ID", func() {
m.Get("", reqRepoCloudBrainReader, repo.ShowSingleModel)
})
}, context.RepoRef())

m.Group("/modelarts", func() {


+ 0
- 2
templates/repo/modelmanage/index.tmpl View File

@@ -312,8 +312,6 @@
{{$.i18n.Tr "repo.model_download"}}
</a>
</div>
<!-- 删除任务 -->
<form class="ui compact buttons" id="delForm-{{.ID}}" action="{{$.Link}}/{{.ID}}/del" method="post">


Loading…
Cancel
Save