diff --git a/internal/lkgateway/depotest.go b/internal/lkgateway/depotest.go index dc3550b..45e8c35 100644 --- a/internal/lkgateway/depotest.go +++ b/internal/lkgateway/depotest.go @@ -363,9 +363,10 @@ func registerDepoTest(mux *http.ServeMux, a *admin) { DB string JobMode string Flash string + Rows []string }{nowPage("Тестирование DEPO", "depotest"), clients, secs, parts, codes, append([]struct{ Code, Title string }(nil), depoTestOutcomes...), runs, running, - fs.Server + " / " + fs.DepoDB(), fs.DepoJobMode, r.URL.Query().Get("flash")} + fs.Server + " / " + fs.DepoDB(), fs.DepoJobMode, r.URL.Query().Get("flash"), []string{"1", "2", "3", "4", "5"}} render(w, a.depoTest, data) }) mux.HandleFunc("/admin/depo-test/run", func(w http.ResponseWriter, r *http.Request) { diff --git a/internal/lkgateway/web/templates/admin_depo_test.html b/internal/lkgateway/web/templates/admin_depo_test.html index eede5f6..50bad3a 100644 --- a/internal/lkgateway/web/templates/admin_depo_test.html +++ b/internal/lkgateway/web/templates/admin_depo_test.html @@ -48,7 +48,7 @@
{{$o := .Outcomes}}{{$c := .Codes}} - {{range $i, $n := (slice "1" "2" "3" "4" "5")}} + {{range $n := .Rows}}