mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-07-13 07:00:04 +02:00
Fix and simplify some tmpl conditions (#11080)
This commit is contained in:
parent
eeb968eab5
commit
3d6f1731b5
6 changed files with 7 additions and 7 deletions
|
@ -11,7 +11,7 @@
|
|||
{{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 4) }}
|
||||
<i class="ui blob-excerpt fa fa-caret-up" data-url="{{$.root.RepoLink}}/blob_excerpt/{{$.root.AfterCommitID}}" data-query="{{$line.GetBlobExcerptQuery}}&style=unified&direction=up" data-anchor="diff-{{Sha1 $file.Name}}K{{$line.SectionInfo.RightIdx}}"></i>
|
||||
{{end}}
|
||||
{{if or (eq $line.GetExpandDirection 2)}}
|
||||
{{if eq $line.GetExpandDirection 2}}
|
||||
<span class="ui blob-excerpt" data-url="{{$.root.RepoLink}}/blob_excerpt/{{$.root.AfterCommitID}}" data-query="{{$line.GetBlobExcerptQuery}}&style=unified&direction=" data-anchor="diff-{{Sha1 $file.Name}}K{{$line.SectionInfo.RightIdx}}">{{svg "octicon-fold" 16}}</span>
|
||||
{{end}}
|
||||
</td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue