diff options
author | Yarden Shoham <git@yardenshoham.com> | 2023-04-12 09:29:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-12 02:29:49 -0400 |
commit | 97176754beb4de23fa0f68df715c4737919c93b0 (patch) | |
tree | daa2bba8a913fb607d567dffeac7795c3284a0ff /templates/user/dashboard | |
parent | 8aada1849f949d0c7f023f11061cacc957e0df8f (diff) | |
download | gitea-97176754beb4de23fa0f68df715c4737919c93b0.tar.gz gitea-97176754beb4de23fa0f68df715c4737919c93b0.zip |
Localize milestone related time strings (#24051)
- With #23988 in place, we can improve these timestamps
---------
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'templates/user/dashboard')
-rw-r--r-- | templates/user/dashboard/milestones.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/dashboard/milestones.tmpl b/templates/user/dashboard/milestones.tmpl index 6788aa09a2..9915159721 100644 --- a/templates/user/dashboard/milestones.tmpl +++ b/templates/user/dashboard/milestones.tmpl @@ -97,7 +97,7 @@ {{else}} {{svg "octicon-calendar"}} {{if .DeadlineString}} - <span {{if .IsOverdue}}class="overdue"{{end}}>{{.DeadlineString}}</span> + <span {{if .IsOverdue}}class="overdue"{{end}}>{{template "shared/datetime/short" (dict "Datetime" .DeadlineString "Fallback" .DeadlineString)}}</span> {{else}} {{$.locale.Tr "repo.milestones.no_due_date"}} {{end}} |