Add ability to edit devices

This commit is contained in:
2025-03-24 15:01:42 +01:00
parent 5df1e9485a
commit b799ac5aa6
5 changed files with 137 additions and 39 deletions

10
main.go
View File

@@ -43,10 +43,12 @@ func main() {
templates, err := template.New("undefined.gohtml").
Funcs(template.FuncMap{
"statusText": http.StatusText,
"createDeviceLink": createDeviceLink,
"formatMemorySize": formatMemorySize,
"formatType": formatType,
"statusText": http.StatusText,
"createDeviceLink": createDeviceLink,
"formatMemorySize": formatMemorySize,
"formatMemoryPlainSize": formatMemoryPlainSize,
"formatType": formatType,
"isRamType": isRamType,
}).
ParseFS(templateFS, "templates/*.gohtml")