aboutsummaryrefslogtreecommitdiffstats
path: root/templates/explore/repo_search.tmpl
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2023-09-16 05:51:54 +0200
committerGitHub <noreply@github.com>2023-09-16 03:51:54 +0000
commitf3f445862e0962b673b5e0d3d12b00c3f7001d85 (patch)
tree9e9b0d87b8acb411e31704fe6dad909ce8f86956 /templates/explore/repo_search.tmpl
parent7cdbe65a2c3ea5a4d958d40428713f6699a22337 (diff)
downloadgitea-f3f445862e0962b673b5e0d3d12b00c3f7001d85.tar.gz
gitea-f3f445862e0962b673b5e0d3d12b00c3f7001d85.zip
Use `print` instead of `printf` (#27093)
A bit more performant when we only use it for appending strings.
Diffstat (limited to 'templates/explore/repo_search.tmpl')
-rw-r--r--templates/explore/repo_search.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/explore/repo_search.tmpl b/templates/explore/repo_search.tmpl
index c056662fb8..0731368e85 100644
--- a/templates/explore/repo_search.tmpl
+++ b/templates/explore/repo_search.tmpl
@@ -36,7 +36,7 @@
</div>
{{if and .PageIsExploreRepositories .OnlyShowRelevant}}
<div class="ui message explore-relevancy-note">
- <span data-tooltip-content="{{.locale.Tr "explore.relevant_repositories_tooltip"}}">{{.locale.Tr "explore.relevant_repositories" ((printf "%s%s" $.Link "?only_show_relevant=0")|Escape) | Safe}}</span>
+ <span data-tooltip-content="{{.locale.Tr "explore.relevant_repositories_tooltip"}}">{{.locale.Tr "explore.relevant_repositories" ((print $.Link "?only_show_relevant=0")|Escape) | Safe}}</span>
</div>
{{end}}
<div class="divider"></div>