add fs providers hook

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2024-08-10 15:57:05 +02:00
parent 81433e00d1
commit 954c36c0a2
5 changed files with 34 additions and 8 deletions

View File

@@ -514,6 +514,7 @@ func loadAdminTemplates(templatesPath string) {
fsBaseTpl := template.New("fsBaseTemplate").Funcs(template.FuncMap{
"HumanizeBytes": util.ByteCountSI,
"IsFsDisabled": vfs.IsFsDisabled,
})
usersTmpl := util.LoadTemplate(nil, usersPaths...)
userTmpl := util.LoadTemplate(fsBaseTpl, userPaths...)