some stuff dunno
This commit is contained in:
parent
63763582c3
commit
b65a30639e
1 changed files with 6 additions and 3 deletions
9
main.go
9
main.go
|
@ -122,10 +122,13 @@ func (web Web) viewWatch(c *gin.Context) {
|
||||||
fd := &bftFilters[i]
|
fd := &bftFilters[i]
|
||||||
fd.RevDepth = make([]struct{}, depth-len(fd.Depth))
|
fd.RevDepth = make([]struct{}, depth-len(fd.Depth))
|
||||||
}
|
}
|
||||||
|
numberOfColumns := depth + 4
|
||||||
c.HTML(http.StatusOK, "viewWatch", gin.H{
|
c.HTML(http.StatusOK, "viewWatch", gin.H{
|
||||||
"Watch": watch,
|
"Watch": watch,
|
||||||
"Filters": bftFilters,
|
"Filters": bftFilters,
|
||||||
"MaxDepth": depth,
|
"MaxDepth": depth,
|
||||||
|
"Columns": make([]struct{}, numberOfColumns),
|
||||||
|
"ColumnWidth": 100 / numberOfColumns,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue