builds now, not sure if the new handler works or not
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Jeffrey Paul 2020-04-04 18:32:25 -07:00
parent 783086bb0d
commit 98861bc6f3
1 changed files with 7 additions and 4 deletions

View File

@ -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)