|
58 | 58 | </div>
|
59 | 59 |
|
60 | 60 | <div class="issue list">
|
61 |
| - {{range $index, $issue := .Issues}} |
62 |
| - {{ $timeStr:= TimeSinceUnix $issue.CreatedUnix $.Lang }} |
| 61 | + {{range .Issues}} |
| 62 | + {{ $timeStr:= TimeSinceUnix .CreatedUnix $.Lang }} |
63 | 63 | <li class="item">
|
64 |
| - <div class="ui label">{{if not $.RepoID}}{{$issue.Repo.FullName}}{{end}}#{{$issue.Index}}</div> |
65 |
| - <a class="title has-emoji" href="{{AppSubUrl}}/{{$issue.Repo.Owner.Name}}/{{$issue.Repo.Name}}/issues/{{$issue.Index}}">{{$issue.Title}}</a> |
66 |
| - {{if $issue.IsPull}} |
67 |
| - {{template "repo/commit_status" (index $.IssuesStates $issue.ID)}} |
| 64 | + <div class="ui label">{{if not $.RepoID}}{{.Repo.FullName}}{{end}}#{{.Index}}</div> |
| 65 | + <a class="title has-emoji" href="{{AppSubUrl}}/{{.Repo.Owner.Name}}/{{.Repo.Name}}/issues/{{.Index}}">{{.Title}}</a> |
| 66 | + {{if .IsPull}} |
| 67 | + {{template "repo/commit_status" (index $.IssuesStates .ID)}} |
68 | 68 | {{end}}
|
69 |
| - {{with $issue.Labels}} |
| 69 | + {{with .Labels}} |
70 | 70 | {{/* If we have any labels, we should show them
|
71 | 71 | with a 2.5 line height, this way they don't look
|
72 | 72 | awful and they don't stack on top of each other,
|
|
78 | 78 | </span>
|
79 | 79 | {{end}}
|
80 | 80 |
|
81 |
| - {{if $issue.NumComments}} |
82 |
| - <span class="comment ui right"><i class="octicon octicon-comment"></i> {{$issue.NumComments}}</span> |
| 81 | + {{if .NumComments}} |
| 82 | + <span class="comment ui right"><i class="octicon octicon-comment"></i> {{.NumComments}}</span> |
83 | 83 | {{end}}
|
84 | 84 | {{if .TotalTrackedTime}}
|
85 | 85 | <span class="comment ui right"><i class="octicon octicon-clock"></i> {{.TotalTrackedTime | Sec2Time}}</span>
|
86 | 86 | {{end}}
|
87 | 87 |
|
88 | 88 | <p class="desc">
|
89 |
| - {{$.i18n.Tr "repo.issues.opened_by" $timeStr $issue.Poster.HomeLink $issue.Poster.Name | Safe}} |
90 |
| - {{if $issue.Assignee}} |
91 |
| - <a class="ui right assignee poping up" href="{{$issue.Assignee.HomeLink}}" data-content="{{$issue.Assignee.Name}}" data-variation="inverted" data-position="left center"> |
92 |
| - <img class="ui avatar image" src="{{$issue.Assignee.RelAvatarLink}}"> |
| 89 | + {{$.i18n.Tr "repo.issues.opened_by" $timeStr .Poster.HomeLink .Poster.Name | Safe}} |
| 90 | + {{if .Assignee}} |
| 91 | + <a class="ui right assignee poping up" href="{{.Assignee.HomeLink}}" data-content="{{.Assignee.Name}}" data-variation="inverted" data-position="left center"> |
| 92 | + <img class="ui avatar image" src="{{.Assignee.RelAvatarLink}}"> |
93 | 93 | </a>
|
94 | 94 | {{end}}
|
95 | 95 | {{$tasks := .GetTasks}}
|
|
0 commit comments