This commit is contained in:
parent
194a11eb11
commit
0a24f5cac8
2 changed files with 4 additions and 1 deletions
|
@ -165,6 +165,9 @@ func NewFuncMap() []template.FuncMap {
|
|||
"DisableGitHooks": func() bool {
|
||||
return setting.DisableGitHooks
|
||||
},
|
||||
"DisableImportLocal": func() bool {
|
||||
return !setting.ImportLocalPaths
|
||||
},
|
||||
"TrN": TrN,
|
||||
"Dict": func(values ...interface{}) (map[string]interface{}, error) {
|
||||
if len(values)%2 != 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue