diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 537ef71ccf5e..ad39baecb904 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -454,6 +454,7 @@ func NewFuncMap() []template.FuncMap {
}
return items
},
+ "HasPrefix": strings.HasPrefix,
}}
}
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index 94ae5ed7e215..a2f31fc9503b 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"}} {{.i18n.Tr "repo.wiki"}}
{{end}}