Skip to content

Commit 15e49d6

Browse files
committed
remove unused variable on template
1 parent 4824f72 commit 15e49d6

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

templates/user/dashboard/issues.tmpl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@
5858
</div>
5959

6060
<div class="issue list">
61-
{{range $index, $issue := .Issues}}
62-
{{ $timeStr:= TimeSinceUnix $issue.CreatedUnix $.Lang }}
61+
{{range .Issues}}
62+
{{ $timeStr:= TimeSinceUnix .CreatedUnix $.Lang }}
6363
<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)}}
6868
{{end}}
69-
{{with $issue.Labels}}
69+
{{with .Labels}}
7070
{{/* If we have any labels, we should show them
7171
with a 2.5 line height, this way they don't look
7272
awful and they don't stack on top of each other,
@@ -78,18 +78,18 @@
7878
</span>
7979
{{end}}
8080

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>
8383
{{end}}
8484
{{if .TotalTrackedTime}}
8585
<span class="comment ui right"><i class="octicon octicon-clock"></i> {{.TotalTrackedTime | Sec2Time}}</span>
8686
{{end}}
8787

8888
<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}}">
9393
</a>
9494
{{end}}
9595
{{$tasks := .GetTasks}}

0 commit comments

Comments
 (0)