]> source.dussan.org Git - gitea.git/commitdiff
Use correct variable for issue count (#20086)
authorLunny Xiao <xiaolunwen@gmail.com>
Wed, 22 Jun 2022 16:26:41 +0000 (00:26 +0800)
committerGitHub <noreply@github.com>
Wed, 22 Jun 2022 16:26:41 +0000 (11:26 -0500)
templates/user/dashboard/issues.tmpl

index bd7d54b6705d97cb1b95d1d110c82c0b4c6c707d..9024d9ede68e32ada4f5cd7e387a4a273c43f957 100644 (file)
                                                <div class="ui compact tiny menu">
                                                        <a class="item{{if not .IsShowClosed}} active{{end}}" href="{{.Link}}?type={{$.ViewType}}&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state=open&q={{$.Keyword}}">
                                                                {{svg "octicon-issue-opened" 16 "mr-3"}}
-                                                               {{JsPrettyNumber .ShownIssueStats.OpenCount}}&nbsp;{{.i18n.Tr "repo.issues.open_title"}}
+                                                               {{JsPrettyNumber .IssueStats.OpenCount}}&nbsp;{{.i18n.Tr "repo.issues.open_title"}}
                                                        </a>
                                                        <a class="item{{if .IsShowClosed}} active{{end}}" href="{{.Link}}?type={{$.ViewType}}&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state=closed&q={{$.Keyword}}">
                                                                {{svg "octicon-issue-closed" 16 "mr-3"}}
-                                                               {{JsPrettyNumber .ShownIssueStats.ClosedCount}}&nbsp;{{.i18n.Tr "repo.issues.closed_title"}}
+                                                               {{JsPrettyNumber .IssueStats.ClosedCount}}&nbsp;{{.i18n.Tr "repo.issues.closed_title"}}
                                                        </a>
                                                </div>
                                        </div>