diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 602afec413..410857f37e 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -453,6 +453,7 @@ func NewFuncMap() []template.FuncMap {
}
return items
},
+ "HasPrefix": strings.HasPrefix,
}}
}
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index e6ed76bb60..a08196f264 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -206,7 +206,7 @@
{{end}}
{{if or (.Permission.CanRead $.UnitTypeWiki) (.Permission.CanRead $.UnitTypeExternalWiki)}}
-
+
{{svg "octicon-book"}} {{.locale.Tr "repo.wiki"}}
{{end}}