Skip to content

Commit 083436b

Browse files
lunnysilverwind
andcommitted
Fix bug for version update hint (go-gitea#18701)
Co-authored-by: silverwind <[email protected]>
1 parent 2e317d3 commit 083436b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2334,6 +2334,7 @@ first_page = First
23342334
last_page = Last
23352335
total = Total: %d
23362336

2337+
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.
23372338
dashboard.statistic = Summary
23382339
dashboard.operations = Maintenance Operations
23392340
dashboard.system_status = System Status

templates/admin/dashboard.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{{template "base/alert" .}}
66
{{if .NeedUpdate}}
77
<div class="ui negative message flash-error">
8-
<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>
8+
<p>{{.i18n.Tr "admin.dashboard.new_version_hint" (.RemoteVersion | Str2html) (AppVer | Str2html)}}</p>
99
</div>
1010
{{end}}
1111
<h4 class="ui top attached header">

0 commit comments

Comments
 (0)