Browse Source

fix-1515

tags/v1.22.2.2^2
liuzx 4 years ago
parent
commit
840e732490
2 changed files with 5 additions and 2 deletions
  1. +4
    -1
      routers/routes/routes.go
  2. +1
    -1
      templates/repo/cloudbrain/benchmark/index.tmpl

+ 4
- 1
routers/routes/routes.go View File

@@ -992,8 +992,11 @@ func RegisterRoutes(m *macaron.Macaron) {

m.Group("/benchmark", func() {
m.Get("", reqRepoCloudBrainReader, repo.CloudBrainBenchmarkIndex)
m.Group("/:jobid", func() {
m.Group("/:jobname", func() {
m.Get("", reqRepoCloudBrainReader, repo.CloudBrainBenchMarkShow)
})
m.Group("/:jobid", func() {
// m.Get("", reqRepoCloudBrainReader, repo.CloudBrainBenchMarkShow)
m.Post("/stop", cloudbrain.AdminOrOwnerOrJobCreaterRight, repo.CloudBrainStop)
m.Post("/del", cloudbrain.AdminOrOwnerOrJobCreaterRight, repo.BenchmarkDel)
m.Get("/rate", reqRepoCloudBrainReader, repo.GetRate)


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

@@ -99,7 +99,7 @@
<!-- 任务名 -->
<div class="three wide column padding0">
<a class="title" href="{{$.Link}}/{{.JobID}}" title="{{.JobName}}" style="font-size: 14px;">
<a class="title" href="{{$.Link}}/{{.JobName}}" title="{{.JobName}}" style="font-size: 14px;">
<span class="fitted" style="width: 90%;vertical-align: middle;">{{.JobName}}</span>
</a>


Loading…
Cancel
Save