diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2023-09-16 05:51:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-16 03:51:54 +0000 |
commit | f3f445862e0962b673b5e0d3d12b00c3f7001d85 (patch) | |
tree | 9e9b0d87b8acb411e31704fe6dad909ce8f86956 /templates/repo/commits_list.tmpl | |
parent | 7cdbe65a2c3ea5a4d958d40428713f6699a22337 (diff) | |
download | gitea-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/repo/commits_list.tmpl')
-rw-r--r-- | templates/repo/commits_list.tmpl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl index a06c425b73..7ecbc8f884 100644 --- a/templates/repo/commits_list.tmpl +++ b/templates/repo/commits_list.tmpl @@ -28,17 +28,17 @@ <button class="ui button copy-commit-sha gt-df gt-ac" data-clipboard-text="{{.ID}}">{{svg "octicon-copy" 14}}</button> {{$class := "ui sha label"}} {{if .Signature}} - {{$class = (printf "%s%s" $class " isSigned")}} + {{$class = (print $class " isSigned")}} {{if .Verification.Verified}} {{if eq .Verification.TrustStatus "trusted"}} - {{$class = (printf "%s%s" $class " isVerified")}} + {{$class = (print $class " isVerified")}} {{else if eq .Verification.TrustStatus "untrusted"}} - {{$class = (printf "%s%s" $class " isVerifiedUntrusted")}} + {{$class = (print $class " isVerifiedUntrusted")}} {{else}} - {{$class = (printf "%s%s" $class " isVerifiedUnmatched")}} + {{$class = (print $class " isVerifiedUnmatched")}} {{end}} {{else if .Verification.Warning}} - {{$class = (printf "%s%s" $class " isWarning")}} + {{$class = (print $class " isWarning")}} {{end}} {{end}} {{$commitShaLink := ""}} |