Add ability to edit devices
This commit is contained in:
10
main.go
10
main.go
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user