diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-03-29 22:16:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-29 22:16:31 +0800 |
commit | bd97736b9c7a16023bc9abf17be6157284f655b1 (patch) | |
tree | eea5870d406bd00fa2e675901f24d9f1fbf1796f /templates | |
parent | ea6efba9b3fd298c842a935266060e405e2ae4a3 (diff) | |
download | gitea-bd97736b9c7a16023bc9abf17be6157284f655b1.tar.gz gitea-bd97736b9c7a16023bc9abf17be6157284f655b1.zip |
Move project files into models/project sub package (#17704)
* Move project files into models/project sub package
* Fix test
* Fix test
* Fix test
* Fix build
* Fix test
* Fix template bug
* Fix bug
* Fix lint
* Fix test
* Fix import
* Improve codes
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/projects/view.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/projects/view.tmpl b/templates/repo/projects/view.tmpl index 4ca21cc38e..7d4d21f8fe 100644 --- a/templates/repo/projects/view.tmpl +++ b/templates/repo/projects/view.tmpl @@ -84,7 +84,7 @@ <div class="board-column-header df ac sb"> <div class="ui large label board-label py-2"> <div class="ui small circular grey label board-card-cnt"> - {{len .Issues}} + {{.NumIssues}} </div> {{.Title}} </div> @@ -175,7 +175,7 @@ <div class="ui cards board" data-url="{{$.RepoLink}}/projects/{{$.Project.ID}}/{{.ID}}" data-project="{{$.Project.ID}}" data-board="{{.ID}}" id="board_{{.ID}}"> - {{ range .Issues }} + {{ range (index $.IssuesMap .ID) }} <!-- start issue card --> <div class="card board-card" data-issue="{{.ID}}"> |