diff options
author | Unknwon <u@gogs.io> | 2017-03-24 14:00:01 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-24 14:00:01 -0400 |
commit | 79ba0314e9bde654c14c2449a4910a35cb65700a (patch) | |
tree | 1a522d47fccd00e3e9056d9a8ca4123ca43c7098 /templates | |
parent | c441f8080e0095fde572abe390012feb681f56b1 (diff) |
milestone: only show issue-related count under issue list (#4316)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/.VERSION | 2 | ||||
-rw-r--r-- | templates/repo/issue/milestones.tmpl | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/templates/.VERSION b/templates/.VERSION index 41542a93..f50cab28 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.10.28.0323
\ No newline at end of file +0.10.29.0324
\ No newline at end of file diff --git a/templates/repo/issue/milestones.tmpl b/templates/repo/issue/milestones.tmpl index e9055843..634dfdd6 100644 --- a/templates/repo/issue/milestones.tmpl +++ b/templates/repo/issue/milestones.tmpl @@ -45,8 +45,10 @@ {{end}} {{end}} <span class="issue-stats"> - <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}} + {{ $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}} </span> </div> {{if $.IsRepositoryWriter}} |