diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/setting/setting.go | 2 | ||||
-rw-r--r-- | modules/templates/helper.go | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 0523c30898..0eaf58988f 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -300,6 +300,7 @@ var ( MaxDisplayFileSize int64 ShowUserEmail bool DefaultTheme string + HeatmapColorRange string Admin struct { UserPagingNum int @@ -326,6 +327,7 @@ var ( ThemeColorMetaTag: `#6cc644`, MaxDisplayFileSize: 8388608, DefaultTheme: `gitea`, + HeatmapColorRange: `['#f4f4f4', '#459928']`, Admin: struct { UserPagingNum int RepoPagingNum int diff --git a/modules/templates/helper.go b/modules/templates/helper.go index ce077d1a92..16627549e7 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -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") |