remove unused variable on template
This commit is contained in:
parent
6e89a7b999
commit
8c914d2cfb
|
|
@ -58,15 +58,15 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="issue list">
|
<div class="issue list">
|
||||||
{{range $index, $issue := .Issues}}
|
{{range .Issues}}
|
||||||
{{ $timeStr:= TimeSinceUnix $issue.CreatedUnix $.Lang }}
|
{{ $timeStr:= TimeSinceUnix .CreatedUnix $.Lang }}
|
||||||
<li class="item">
|
<li class="item">
|
||||||
<div class="ui label">{{if not $.RepoID}}{{$issue.Repo.FullName}}{{end}}#{{$issue.Index}}</div>
|
<div class="ui label">{{if not $.RepoID}}{{.Repo.FullName}}{{end}}#{{.Index}}</div>
|
||||||
<a class="title has-emoji" href="{{AppSubUrl}}/{{$issue.Repo.Owner.Name}}/{{$issue.Repo.Name}}/issues/{{$issue.Index}}">{{$issue.Title}}</a>
|
<a class="title has-emoji" href="{{AppSubUrl}}/{{.Repo.Owner.Name}}/{{.Repo.Name}}/issues/{{.Index}}">{{.Title}}</a>
|
||||||
{{if $issue.IsPull}}
|
{{if .IsPull}}
|
||||||
{{template "repo/commit_status" (index $.IssuesStates $issue.ID)}}
|
{{template "repo/commit_status" (index $.IssuesStates .ID)}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{with $issue.Labels}}
|
{{with .Labels}}
|
||||||
{{/* If we have any labels, we should show them
|
{{/* If we have any labels, we should show them
|
||||||
with a 2.5 line height, this way they don't look
|
with a 2.5 line height, this way they don't look
|
||||||
awful and they don't stack on top of each other,
|
awful and they don't stack on top of each other,
|
||||||
|
|
@ -78,18 +78,18 @@
|
||||||
</span>
|
</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if $issue.NumComments}}
|
{{if .NumComments}}
|
||||||
<span class="comment ui right"><i class="octicon octicon-comment"></i> {{$issue.NumComments}}</span>
|
<span class="comment ui right"><i class="octicon octicon-comment"></i> {{.NumComments}}</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .TotalTrackedTime}}
|
{{if .TotalTrackedTime}}
|
||||||
<span class="comment ui right"><i class="octicon octicon-clock"></i> {{.TotalTrackedTime | Sec2Time}}</span>
|
<span class="comment ui right"><i class="octicon octicon-clock"></i> {{.TotalTrackedTime | Sec2Time}}</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
<p class="desc">
|
<p class="desc">
|
||||||
{{$.i18n.Tr "repo.issues.opened_by" $timeStr $issue.Poster.HomeLink $issue.Poster.Name | Safe}}
|
{{$.i18n.Tr "repo.issues.opened_by" $timeStr .Poster.HomeLink .Poster.Name | Safe}}
|
||||||
{{if $issue.Assignee}}
|
{{if .Assignee}}
|
||||||
<a class="ui right assignee poping up" href="{{$issue.Assignee.HomeLink}}" data-content="{{$issue.Assignee.Name}}" data-variation="inverted" data-position="left center">
|
<a class="ui right assignee poping up" href="{{.Assignee.HomeLink}}" data-content="{{.Assignee.Name}}" data-variation="inverted" data-position="left center">
|
||||||
<img class="ui avatar image" src="{{$issue.Assignee.RelAvatarLink}}">
|
<img class="ui avatar image" src="{{.Assignee.RelAvatarLink}}">
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{$tasks := .GetTasks}}
|
{{$tasks := .GetTasks}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user