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.
forgejo/modules/context
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.
9 months ago
..
access_log.go Replace `interface{}` with `any` (#25686) 1 year ago
api.go Updates to the API for archived repos (#27149) 9 months ago
api_org.go Implement FSFE REUSE for golang files (#21840) 2 years ago
api_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
base.go Introduce ctx.PathParamRaw to avoid incorrect unescaping (#26392) 11 months ago
captcha.go Replace `interface{}` with `any` (#25686) 1 year ago
context.go Make web context initialize correctly for different cases (#26726) 10 months ago
context_cookie.go Improve Gitea's web context, decouple "issue template" code into service package (#24590) 1 year ago
context_model.go Improve Gitea's web context, decouple "issue template" code into service package (#24590) 1 year ago
context_request.go Decouple the different contexts from each other (#24786) 1 year ago
context_response.go Start using template context function (#26254) 11 months ago
context_template.go Start using template context function (#26254) 11 months ago
context_test.go Use standard HTTP library to serve files (#24693) 1 year ago
csrf.go Refactor cookie (#24107) 1 year ago
org.go Another round of `db.DefaultContext` refactor (#27103) 9 months ago
package.go Make web context initialize correctly for different cases (#26726) 10 months ago
pagination.go Replace `interface{}` with `any` (#25686) 1 year ago
permission.go Add context parameter to some database functions (#26055) 12 months ago
private.go Replace `interface{}` with `any` (#25686) 1 year ago
repo.go Improvements of releases list and tags list (#25859) 9 months ago
response.go Refactor web package and context package (#25298) 1 year ago
utils.go Avoid double-unescaping of form value (#26853) 10 months ago
xsrf.go Update gitea-vet to check FSFE REUSE (#22004) 2 years ago
xsrf_test.go Update gitea-vet to check FSFE REUSE (#22004) 2 years ago