1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Add whitespace removal inside template curly brackes (#20853)

This commit is contained in:
silverwind
2022-08-25 23:55:52 +02:00
committed by GitHub
parent 27ac65a124
commit 6c4688e1b1
30 changed files with 110 additions and 102 deletions

View File

@@ -1,5 +1,5 @@
<div class="issue list">
{{ $approvalCounts := .ApprovalCounts}}
{{$approvalCounts := .ApprovalCounts}}
{{range .Issues}}
<li class="item df py-3">
<div class="issue-item-left df">
@@ -55,8 +55,8 @@
#{{.Index}}
{{end}}
</a>
{{ $timeStr := TimeSinceUnix .GetLastEventTimestamp $.locale }}
{{if .OriginalAuthor }}
{{$timeStr := TimeSinceUnix .GetLastEventTimestamp $.locale}}
{{if .OriginalAuthor}}
{{$.locale.Tr .GetLastEventLabelFake $timeStr (.OriginalAuthor|Escape) | Safe}}
{{else if gt .Poster.ID 0}}
{{$.locale.Tr .GetLastEventLabel $timeStr (.Poster.HomeLink|Escape) (.Poster.GetDisplayName | Escape) | Safe}}