some stuff dunno

This commit is contained in:
BroodjeAap 2022-09-04 15:00:42 +00:00
parent 63763582c3
commit b65a30639e

View file

@ -122,10 +122,13 @@ func (web Web) viewWatch(c *gin.Context) {
fd := &bftFilters[i]
fd.RevDepth = make([]struct{}, depth-len(fd.Depth))
}
numberOfColumns := depth + 4
c.HTML(http.StatusOK, "viewWatch", gin.H{
"Watch": watch,
"Filters": bftFilters,
"MaxDepth": depth,
"Watch": watch,
"Filters": bftFilters,
"MaxDepth": depth,
"Columns": make([]struct{}, numberOfColumns),
"ColumnWidth": 100 / numberOfColumns,
})
}