]> source.dussan.org Git - gitea.git/commitdiff
Fix update hint bug (#18996)
authorLunny Xiao <xiaolunwen@gmail.com>
Fri, 4 Mar 2022 20:59:29 +0000 (04:59 +0800)
committerGitHub <noreply@github.com>
Fri, 4 Mar 2022 20:59:29 +0000 (20:59 +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">