From 260ebcc1cad18d376acdeef8fb81c1a2200f1b14 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 24 Mar 2017 18:54:17 -0400 Subject: [PATCH] repo/milestone: simplify code --- templates/repo/issue/milestones.tmpl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/repo/issue/milestones.tmpl b/templates/repo/issue/milestones.tmpl index 634dfdd66..e90558431 100644 --- a/templates/repo/issue/milestones.tmpl +++ b/templates/repo/issue/milestones.tmpl @@ -45,10 +45,8 @@ {{end}} {{end}} - {{ $openCount := .CountIssues false false}} - {{ $closedCount := .CountIssues true false}} - {{$.i18n.Tr "repo.issues.open_tab" $openCount}} - {{$.i18n.Tr "repo.issues.close_tab" $closedCount}} + {{$.i18n.Tr "repo.issues.open_tab" .NumOpenIssues}} + {{$.i18n.Tr "repo.issues.close_tab" .NumClosedIssues}} {{if $.IsRepositoryWriter}}