]> source.dussan.org Git - gitea.git/commitdiff
Fix bug for version update hint (#18701)
authorLunny Xiao <xiaolunwen@gmail.com>
Thu, 10 Feb 2022 14:37:10 +0000 (22:37 +0800)
committerGitHub <noreply@github.com>
Thu, 10 Feb 2022 14:37:10 +0000 (15:37 +0100)
Co-authored-by: silverwind <me@silverwind.io>
options/locale/locale_en-US.ini
templates/admin/dashboard.tmpl

index 7b3671f90aea3fa7b98bdf36bc648af822f59e27..1c4313247871a30fc71cf958860b34f99d6c6dc5 100644 (file)
@@ -2382,6 +2382,7 @@ first_page = First
 last_page = Last
 total = Total: %d
 
+dashboard.new_version_hint = Gitea %s is now available, you are running %s. Check the <a target="_blank" rel="noreferrer" href="https://blog.gitea.io">blog</a> for more details.
 dashboard.statistic = Summary
 dashboard.operations = Maintenance Operations
 dashboard.system_status = System Status
index 35f45bd3529c4c6bad6903a47bba1691d5a0feac..d9e056973aeef879bec3e4b71125eb70b3ce075d 100644 (file)
@@ -5,7 +5,7 @@
                {{template "base/alert" .}}
                {{if .NeedUpdate}}
                        <div class="ui negative message flash-error">
-                               <p>"Gitea {{.RemoteVersion | Str2html}} is now available, you are running {{.AppVer | Str2html}}. Check the <a href="https://blog.gitea.io">blog</a> for more details.</p>
+                               <p>{{.i18n.Tr "admin.dashboard.new_version_hint" (.RemoteVersion | Str2html) (AppVer | Str2html)}}</p>
                        </div>
                {{end}}
                <h4 class="ui top attached header">