diff options
author | silverwind <me@silverwind.io> | 2022-08-31 17:58:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-31 23:58:54 +0800 |
commit | 647b2649b1600107c5fec3505db691f78b2c1e2a (patch) | |
tree | b3bcaf968426f6ad1ba4fde3e41f3ca3224ec47e /templates/repo/projects/list.tmpl | |
parent | c80ca94ab1de8ea3b13c1087cd7140165a11ceb7 (diff) | |
download | gitea-647b2649b1600107c5fec3505db691f78b2c1e2a.tar.gz gitea-647b2649b1600107c5fec3505db691f78b2c1e2a.zip |
Make sure fmt catches all templates (#20979)
* Make sure fmt catches all templates
Make's `wildcard` is not recursive so it missed many template files, fix
that by using `find`.
* Update Makefile
Diffstat (limited to 'templates/repo/projects/list.tmpl')
-rw-r--r-- | templates/repo/projects/list.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/projects/list.tmpl b/templates/repo/projects/list.tmpl index 6703283b8c..9e265f9a91 100644 --- a/templates/repo/projects/list.tmpl +++ b/templates/repo/projects/list.tmpl @@ -42,8 +42,8 @@ <li class="item"> {{svg "octicon-project"}} <a href="{{$.RepoLink}}/projects/{{.ID}}">{{.Title}}</a> <div class="meta"> - {{ $closedDate:= TimeSinceUnix .ClosedDateUnix $.locale }} - {{if .IsClosed }} + {{$closedDate:= TimeSinceUnix .ClosedDateUnix $.locale}} + {{if .IsClosed}} {{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.closed" $closedDate|Str2html}} {{end}} <span class="issue-stats"> |