|
|
@ -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}} |
|
|
|