aboutsummaryrefslogtreecommitdiffstats
path: root/modules/templates
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2019-12-28 00:43:56 +0100
committertechknowlogick <techknowlogick@gitea.io>2019-12-27 18:43:56 -0500
commit4ee97465e97ae6b9d3ac6ea57246f67715246afe (patch)
treee332e1e4c954536e393eb33eb85073f26687bd6b /modules/templates
parente64880ef0767a6921498401e041bf9ad8dfa9a6f (diff)
downloadgitea-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.go3
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,