summaryrefslogtreecommitdiffstats
path: root/templates/user/dashboard
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-12-29 21:02:12 +0800
committerGitHub <noreply@github.com>2021-12-29 21:02:12 +0800
commit8ce1b539b1aaf242903b5b0c342dd592bd8da8d9 (patch)
tree455d363b51d69a9be4058961a16d5c43b7698f47 /templates/user/dashboard
parent8fa97a25f0dccc4db94d344ce7af632f8fe358b0 (diff)
downloadgitea-8ce1b539b1aaf242903b5b0c342dd592bd8da8d9.tar.gz
gitea-8ce1b539b1aaf242903b5b0c342dd592bd8da8d9.zip
Use conditions but not repo ids as query condition (#16839)
* Use conditions but not repo ids as query condition * Improve the performance of pulls/issue * Remove duplicated code * fix lint * Fix bug * Fix stats * More fixes * Fix build * Fix lint * Fix test * Fix build * Adjust the logic * Merge * Fix conflicts * improve the performance * Add comments for the query conditions functions * Some improvements
Diffstat (limited to 'templates/user/dashboard')
-rw-r--r--templates/user/dashboard/issues.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl
index aca61f9ae9..dc66859b83 100644
--- a/templates/user/dashboard/issues.tmpl
+++ b/templates/user/dashboard/issues.tmpl
@@ -61,11 +61,11 @@
<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"}}
- {{.i18n.Tr "repo.issues.open_tab" .ShownIssueStats.OpenCount}}
+ {{.i18n.Tr "repo.issues.open_tab" .IssueStats.OpenCount}}
</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"}}
- {{.i18n.Tr "repo.issues.close_tab" .ShownIssueStats.ClosedCount}}
+ {{.i18n.Tr "repo.issues.close_tab" .IssueStats.ClosedCount}}
</a>
</div>
</div>