]> source.dussan.org Git - gitea.git/commitdiff
Fix update hint bug (#19002)
authorLunny Xiao <xiaolunwen@gmail.com>
Fri, 4 Mar 2022 18:28:17 +0000 (02:28 +0800)
committerGitHub <noreply@github.com>
Fri, 4 Mar 2022 18:28:17 +0000 (18:28 +0000)
templates/admin/dashboard.tmpl

index d9e056973aeef879bec3e4b71125eb70b3ce075d..5a4b82f1b963e9877fcbabca806a6a70c99c21e9 100644 (file)
@@ -5,7 +5,7 @@
                {{template "base/alert" .}}
                {{if .NeedUpdate}}
                        <div class="ui negative message flash-error">
-                               <p>{{.i18n.Tr "admin.dashboard.new_version_hint" (.RemoteVersion | Str2html) (AppVer | Str2html)}}</p>
+                               <p>{{(.i18n.Tr "admin.dashboard.new_version_hint" .RemoteVersion AppVer) | Str2html}}</p>
                        </div>
                {{end}}
                <h4 class="ui top attached header">