aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-12-27 22:01:18 +0800
committerUnknwon <u@gogs.io>2016-12-27 22:01:18 +0800
commit8059175a5c0363519ba28fb8fc5f9d494f6a209d (patch)
treef21775c9c1abbdad73b1d6d98984f5ac1780cba4 /templates
parentf8fd084bd2c7c2a4d642daad59dceaf40686269e (diff)
Fix dashboard issues/pull request counting
Diffstat (limited to 'templates')
-rw-r--r--templates/user/dashboard/issues.tmpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl
index adcbfb6d..c2ebd0a0 100644
--- a/templates/user/dashboard/issues.tmpl
+++ b/templates/user/dashboard/issues.tmpl
@@ -23,7 +23,13 @@
{{range .Repos}}
<a class="{{if eq $.RepoID .ID}}ui basic blue button{{end}} repo name item" href="{{$.Link}}?type={{$.ViewType}}{{if not (eq $.RepoID .ID)}}&repo={{.ID}}{{end}}&sort={{$.SortType}}&state={{$.State}}">
<span class="text truncate">{{.FullName}}</span>
- <div class="floating ui {{if $.IsShowClosed}}red{{else}}green{{end}} label">{{if $.IsShowClosed}}{{.NumClosedIssues}}{{else}}{{.NumOpenIssues}}{{end}}</div>
+ <div class="floating ui {{if $.IsShowClosed}}red{{else}}green{{end}} label">
+ {{if $.PageIsIssues}}
+ {{if $.IsShowClosed}}{{.NumClosedIssues}}{{else}}{{.NumOpenIssues}}{{end}}
+ {{else}}
+ {{if $.IsShowClosed}}{{.NumClosedPulls}}{{else}}{{.NumOpenPulls}}{{end}}
+ {{end}}
+ </div>
</a>
{{end}}
</div>