diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-17 08:58:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-17 08:58:19 +0800 |
commit | 847527fd6dd8e53eea918e6e41da6ebc64be1388 (patch) | |
tree | d240617fa9787331e540326bdde4574bfbbeac7c /templates | |
parent | 669dad71f830693a83a50e3de52a86e3940497b6 (diff) | |
download | gitea-847527fd6dd8e53eea918e6e41da6ebc64be1388.tar.gz gitea-847527fd6dd8e53eea918e6e41da6ebc64be1388.zip |
Fix all the bugs in issues and pulls on dashboard (#943)
* fix all the bugs in issues and pulls on dashboard
* small fix and refactor
* add method getRepoIDs for IssueList
Diffstat (limited to 'templates')
-rw-r--r-- | templates/user/dashboard/issues.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl index daf9b26dd1..a146250c18 100644 --- a/templates/user/dashboard/issues.tmpl +++ b/templates/user/dashboard/issues.tmpl @@ -23,7 +23,7 @@ {{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 $.IsShowClosed}}{{if $.PageIsPulls}}{{.NumClosedPulls}}{{else}}{{.NumClosedIssues}}{{end}}{{else}}{{if $.PageIsPulls}}{{.NumOpenPulls}}{{else}}{{.NumOpenIssues}}{{end}}{{end}}</div> </a> {{end}} </div> |