builds now, not sure if the new handler works or not
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
783086bb0d
commit
98861bc6f3
@ -10,6 +10,7 @@ import (
|
||||
u "git.eeqj.de/sneak/goutil"
|
||||
"github.com/flosch/pongo2"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/google/uuid"
|
||||
"github.com/labstack/echo"
|
||||
)
|
||||
|
||||
@ -94,10 +95,12 @@ func (a *Server) instanceHandler(c echo.Context) error {
|
||||
return c.String(http.StatusNotFound, "404 not found")
|
||||
}
|
||||
|
||||
|
||||
i := a.feta.manager.ListInstances() {
|
||||
tc := pongo2.Context{
|
||||
"instance": i,
|
||||
tc := pongo2.Context{}
|
||||
instances := a.feta.manager.ListInstances()
|
||||
for _, item := range instances {
|
||||
if item.UUID == u {
|
||||
tc["instance"] = item
|
||||
}
|
||||
}
|
||||
|
||||
return c.Render(http.StatusOK, "instance.html", tc)
|
||||
|
Loading…
Reference in New Issue
Block a user