diff options
author | 6543 <6543@obermui.de> | 2019-12-28 00:43:56 +0100 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-12-27 18:43:56 -0500 |
commit | 4ee97465e97ae6b9d3ac6ea57246f67715246afe (patch) | |
tree | e332e1e4c954536e393eb33eb85073f26687bd6b /modules/templates | |
parent | e64880ef0767a6921498401e041bf9ad8dfa9a6f (diff) | |
download | gitea-4ee97465e97ae6b9d3ac6ea57246f67715246afe.tar.gz gitea-4ee97465e97ae6b9d3ac6ea57246f67715246afe.zip |
[Fix] AllowedReaction code (#9518)
* optimize
* CI.restart()
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'modules/templates')
-rw-r--r-- | modules/templates/helper.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go index e0cdcbf60a..deaa9526be 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -81,6 +81,9 @@ func NewFuncMap() []template.FuncMap { "LoadTimes": func(startTime time.Time) string { return fmt.Sprint(time.Since(startTime).Nanoseconds()/1e6) + "ms" }, + "AllowedReactions": func() []string { + return setting.UI.Reactions + }, "AvatarLink": base.AvatarLink, "Safe": Safe, "SafeJS": SafeJS, |