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/diff/section_split.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/diff/section_split.tmpl')
-rw-r--r-- | templates/repo/diff/section_split.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/diff/section_split.tmpl b/templates/repo/diff/section_split.tmpl index 5ea71ae595..6143a47158 100644 --- a/templates/repo/diff/section_split.tmpl +++ b/templates/repo/diff/section_split.tmpl @@ -6,12 +6,12 @@ <tr class="{{DiffLineTypeToStr .GetType}}-code nl-{{$k}} ol-{{$k}}" data-line-type="{{DiffLineTypeToStr .GetType}}"> {{if eq .GetType 4}} <td class="lines-num lines-num-old"> - {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 5) }} + {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 5)}} <a role="button" class="blob-excerpt" data-url="{{$.root.RepoLink}}/blob_excerpt/{{PathEscape $.root.AfterCommitID}}" data-query="{{$line.GetBlobExcerptQuery}}&style=split&direction=down&wiki={{$.root.PageIsWiki}}" data-anchor="diff-{{$file.NameHash}}K{{$line.SectionInfo.RightIdx}}"> {{svg "octicon-fold-down"}} </a> {{end}} - {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 4) }} + {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 4)}} <a role="button" class="blob-excerpt" data-url="{{$.root.RepoLink}}/blob_excerpt/{{PathEscape $.root.AfterCommitID}}" data-query="{{$line.GetBlobExcerptQuery}}&style=split&direction=up&wiki={{$.root.PageIsWiki}}" data-anchor="diff-{{$file.NameHash}}K{{$line.SectionInfo.RightIdx}}"> {{svg "octicon-fold-up"}} </a> |