diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-04-11 17:48:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-11 17:48:13 +0800 |
commit | 25faee3c5f5be23c99b3b7e50418fc0dbad7a41b (patch) | |
tree | 95b83bbbc7787b7cbaec01554f72ae7d4083ba05 /templates/repo/projects | |
parent | 704f3aa91c05aeab7ba18bda62f768ab9233cf6f (diff) | |
download | gitea-25faee3c5f5be23c99b3b7e50418fc0dbad7a41b.tar.gz gitea-25faee3c5f5be23c99b3b7e50418fc0dbad7a41b.zip |
Fix date display bug (#24047)
Follow
https://github.com/go-gitea/gitea/pull/23988#pullrequestreview-1377696819
Many template helper functions are not good enough and cause various
problems, that's why I am cleaning them.
## Before
![image](https://user-images.githubusercontent.com/51889757/230930898-0c48150f-de85-461d-9455-efcfdc36b644.png)
![image](https://user-images.githubusercontent.com/2114189/231111676-b0da1392-5e47-4f89-a81e-85156aca5cfd.png)
## After
![image](https://user-images.githubusercontent.com/2114189/231111732-920f304d-dd44-4c54-9f5f-518e325006fc.png)
Diffstat (limited to 'templates/repo/projects')
-rw-r--r-- | templates/repo/projects/list.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/projects/list.tmpl b/templates/repo/projects/list.tmpl index 227a272705..fb5bc4f48d 100644 --- a/templates/repo/projects/list.tmpl +++ b/templates/repo/projects/list.tmpl @@ -44,7 +44,7 @@ <div class="meta"> {{$closedDate:= TimeSinceUnix .ClosedDateUnix $.locale}} {{if .IsClosed}} - {{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.closed" $closedDate|Str2html}} + {{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}} {{end}} <span class="issue-stats"> {{svg "octicon-issue-opened" 16 "gt-mr-3"}} |