diff options
author | Zsombor <gzsombor@users.noreply.github.com> | 2019-02-13 09:14:17 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-02-13 10:14:17 +0200 |
commit | 23414ac2a1d83f91ff47c5d8bbedebe709b1f408 (patch) | |
tree | 984c4aaad92281ae0b938f4149feb4cdaaea2f9c /templates | |
parent | 7f38e2d0dedfc3e04994272196cda53e4ad20354 (diff) | |
download | gitea-23414ac2a1d83f91ff47c5d8bbedebe709b1f408.tar.gz gitea-23414ac2a1d83f91ff47c5d8bbedebe709b1f408.zip |
Fix panic: template: repo/issue/list:210: unexpected "=" in operand (#6041)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/issue/list.tmpl | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index f42492455c..edf88ebf41 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -181,7 +181,6 @@ <div class="issue list"> {{range .Issues}} - {{ $timeStr:= TimeSinceUnix .CreatedUnix $.Lang }} <li class="item"> <div class="ui checkbox issue-checkbox"> <input type="checkbox" data-issue-id={{.ID}}></input> @@ -205,22 +204,8 @@ {{end}} <p class="desc"> - {{ $textToTranslate := "repo.issues.opened_by" }} - {{ if not .IsClosed }} - {{ $timeStr = TimeSinceUnix .CreatedUnix $.Lang }} - {{ else if and .IsClosed .IsPull }} - {{ $timeStr = TimeSinceUnix .ClosedUnix $.Lang }} - {{ if .PullRequest.HasMerged }} - {{ $textToTranslate = "repo.pulls.merged_by"}} - {{ else }} - {{ $textToTranslate = "repo.issues.closed_by"}} - {{ end }} - {{ else }} - {{ $timeStr = TimeSinceUnix .ClosedUnix $.Lang }} - {{ $textToTranslate = "repo.issues.closed_by"}} - {{ end }} - - {{$.i18n.Tr $textToTranslate $timeStr .Poster.HomeLink .Poster.Name | Safe}} + {{ $timeStr := TimeSinceUnix .GetLastEventTimestamp $.Lang }} + {{$.i18n.Tr .GetLastEventLabel $timeStr .Poster.HomeLink .Poster.Name | Safe}} {{$tasks := .GetTasks}} {{if gt $tasks 0}} |