aboutsummaryrefslogtreecommitdiffstats
path: root/modules/templates
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-05-02 14:09:39 +0100
committerLauris BH <lauris@nix.lv>2019-05-02 16:09:39 +0300
commitade88a877d7f3c1fba466359198b8aa8ce5f28f8 (patch)
tree05ba56fbd3ac14068ccd1cc7deb713caec725db0 /modules/templates
parent159294f79991ad50747cb5f14c82aadfdc77f2c8 (diff)
downloadgitea-ade88a877d7f3c1fba466359198b8aa8ce5f28f8.tar.gz
gitea-ade88a877d7f3c1fba466359198b8aa8ce5f28f8.zip
Allow Recaptcha service url to be configured (#6820)
Diffstat (limited to 'modules/templates')
-rw-r--r--modules/templates/helper.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index b6c5cc5945..94e0748872 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -20,6 +20,8 @@ import (
"strings"
"time"
+ "code.gitea.io/gitea/modules/util"
+
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/log"
@@ -115,6 +117,8 @@ func NewFuncMap() []template.FuncMap {
"EscapePound": func(str string) string {
return strings.NewReplacer("%", "%25", "#", "%23", " ", "%20", "?", "%3F").Replace(str)
},
+ "PathEscapeSegments": util.PathEscapeSegments,
+ "URLJoin": util.URLJoin,
"RenderCommitMessage": RenderCommitMessage,
"RenderCommitMessageLink": RenderCommitMessageLink,
"RenderCommitBody": RenderCommitBody,