You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/web/repo
Zettat123 3fcad582c9
Improvements of releases list and tags list (#25859)
Follow #23465 and #25624

This PR introduces the following improvements:
- We do not need to call `GetTags` to get tags because tags have been
loaded by `RepoAssignment`

ef90fdbd1d/modules/context/repo.go (L663-L668)
- Similarly, the number of tags and releases also have been loaded by
`RepoAssignment`, so the related code has been removed from the
handlers. The query condition of `GetReleaseCountByRepoID` in
`RepoAssignment` has been changed to include draft releases.

ef90fdbd1d/modules/context/repo.go (L538-L551)
- `releasesOrTags` function has been removed. The code for rendering
releases list and tags list moved to `Releases` and `TagList`
respectively.
1 year ago
..
actions Artifacts retention and auto clean up (#26131) 1 year ago
setting make writing main test easier (#27270) 1 year ago
activity.go Implement FSFE REUSE for golang files (#21840) 2 years ago
attachment.go More refactoring of `db.DefaultContext` (#27083) 1 year ago
blame.go Support `.git-blame-ignore-revs` file (#26395) 1 year ago
branch.go Search branches (#27055) 1 year ago
cherry_pick.go Sync branches into databases (#22743) 2 years ago
commit.go Remove ref name in PR commits page (#25876) 1 year ago
compare.go Reduce usage of `db.DefaultContext` (#27073) 1 year ago
download.go Less naked returns (#25713) 2 years ago
editor.go Fix EOL handling in web editor (#27141) 1 year ago
editor_test.go Move web/api context related testing function into a separate package (#26859) 1 year ago
find.go Implement FSFE REUSE for golang files (#21840) 2 years ago
helper.go Make web context initialize correctly for different cases (#26726) 1 year ago
helper_test.go Make web context initialize correctly for different cases (#26726) 1 year ago
http.go More refactoring of `db.DefaultContext` (#27083) 1 year ago
http_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue.go Another round of `db.DefaultContext` refactor (#27103) 1 year ago
issue_content_history.go Improve issue history dialog and make poster can delete their own history (#27323) 1 year ago
issue_dependency.go Add context parameter to some database functions (#26055) 2 years ago
issue_label.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
issue_label_test.go Move web/api context related testing function into a separate package (#26859) 1 year ago
issue_lock.go Use fetch form action for lock/unlock/pin/unpin on sidebar (#25380) 2 years ago
issue_pin.go Add context parameter to some database functions (#26055) 2 years ago
issue_stopwatch.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
issue_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue_timetrack.go Add context parameter to some database functions (#26055) 2 years ago
issue_watch.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
main_test.go make writing main test easier (#27270) 1 year ago
middlewares.go More refactoring of `db.DefaultContext` (#27083) 1 year ago
migrate.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
milestone.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
packages.go Fix the display of org level badges (#26504) 1 year ago
patch.go Sync branches into databases (#22743) 2 years ago
projects.go Refactor project templates (#26448) 2 years ago
projects_test.go Move web/api context related testing function into a separate package (#26859) 1 year ago
pull.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
pull_review.go Fix nil pointer dereference error when open link with invalid pull index (#26353) 2 years ago
release.go Improvements of releases list and tags list (#25859) 1 year ago
release_test.go Improvements of releases list and tags list (#25859) 1 year ago
render.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Another round of `db.DefaultContext` refactor (#27103) 1 year ago
search.go Refactor indexer (#25174) 2 years ago
topic.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
treelist.go Implement FSFE REUSE for golang files (#21840) 2 years ago
view.go Add `RemoteAddress` to mirrors (#26952) 1 year ago
view_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
wiki.go Move notification interface to services layer (#26915) 1 year ago
wiki_test.go Move web/api context related testing function into a separate package (#26859) 1 year ago