aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorLucas Azevedo <lhs_azevedo@hotmail.com>2022-07-19 09:30:55 -0300
committerGitHub <noreply@github.com>2022-07-19 14:30:55 +0200
commite519249266cb69065b65f59477afa36f240b28cf (patch)
tree07968db2a53a63c148ee5cb94a03a9ad0fe64a62 /templates/repo
parentd6779c7ad3639d6af0c4454a9c22abf21d608922 (diff)
downloadgitea-e519249266cb69065b65f59477afa36f240b28cf.tar.gz
gitea-e519249266cb69065b65f59477afa36f240b28cf.zip
Fix modified due date message (#20388)
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/issue/view_content/comments.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl
index 319ee33fae..852c87f2f3 100644
--- a/templates/repo/issue/view_content/comments.tmpl
+++ b/templates/repo/issue/view_content/comments.tmpl
@@ -340,7 +340,8 @@
</a>
<span class="text grey">
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
- {{$.locale.Tr "repo.issues.due_date_modified" (.Content | ParseDeadline) $createdStr | Safe}}
+ {{$parsedDeadline := .Content | ParseDeadline}}
+ {{$.locale.Tr "repo.issues.due_date_modified" (index $parsedDeadline 0) (index $parsedDeadline 1) $createdStr | Safe}}
</span>
</div>
{{else if eq .Type 18}}