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/graph | |
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/graph')
-rw-r--r-- | templates/repo/graph/commits.tmpl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/repo/graph/commits.tmpl b/templates/repo/graph/commits.tmpl index 478121f27c..357c99b2b8 100644 --- a/templates/repo/graph/commits.tmpl +++ b/templates/repo/graph/commits.tmpl @@ -1,10 +1,10 @@ <div id="rev-container"> <ul id="rev-list"> - {{ range $commitI, $commit := .Graph.Commits }} + {{range $commitI, $commit := .Graph.Commits}} <li {{if $commit.Rev}}id="commit-{{$commit.Rev}}"{{end}} data-flow="{{$commit.Flow}}"> - {{ if $commit.OnlyRelation }} + {{if $commit.OnlyRelation}} <span></span> - {{ else }} + {{else}} <span class="sha" id="{{$commit.ShortRev}}"> {{$class := "ui sha label"}} {{if $commit.Commit.Signature}} @@ -72,8 +72,8 @@ {{end}} </span> <span class="time df ac">{{$commit.Date}}</span> - {{ end }} + {{end}} </li> - {{ end }} + {{end}} </ul> </div> |