Browse Source

repo/milestone: simplify code

pull/4343/head
Unknwon 8 years ago
parent
commit
260ebcc1ca
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 6
      templates/repo/issue/milestones.tmpl

6
templates/repo/issue/milestones.tmpl

@ -45,10 +45,8 @@
{{end}}
{{end}}
<span class="issue-stats">
{{ $openCount := .CountIssues false false}}
{{ $closedCount := .CountIssues true false}}
<i class="octicon octicon-issue-opened"></i> {{$.i18n.Tr "repo.issues.open_tab" $openCount}}
<i class="octicon octicon-issue-closed"></i> {{$.i18n.Tr "repo.issues.close_tab" $closedCount}}
<i class="octicon octicon-issue-opened"></i> {{$.i18n.Tr "repo.issues.open_tab" .NumOpenIssues}}
<i class="octicon octicon-issue-closed"></i> {{$.i18n.Tr "repo.issues.close_tab" .NumClosedIssues}}
</span>
</div>
{{if $.IsRepositoryWriter}}

Loading…
Cancel
Save