Set heatmap color range configurable (#5165)

This commit is contained in:
Antoine GIRARD authored and Jonas Franz committed 2018-10-24 16:38:04 +02:00
1 parent 7e5eec430d
commit ffd5fb8139
4 files changed
+8 -1

No files matched your search

+3
View File
@@ -193,6 +193,9 @@ func NewFuncMap() []template.FuncMap {
"DefaultTheme": func() string {
return setting.UI.DefaultTheme
},
"HeatmapColorRange": func() string {
return setting.UI.HeatmapColorRange
},
"dict": func(values ...interface{}) (map[string]interface{}, error) {
if len(values) == 0 {
return nil, errors.New("invalid dict call")