forgejo/modules/context
Gusted 6fbfe441de
[BUG] Load AllUnitsEnabled when necessary
- In order to determine if the "Add more..." tab should be shown, the
template has to know if the repository has all units enabled, this is
done in the repository header which can be shown for quite a lot of
pages (code, issues, projects, actions etc.)
- This was previously set in the `RepoRefByType` function, which would
be called by pages such as code, issues and releases, but it was not
being called for all pages such as actions, packages and wiki. Which
would in turn incorrectly show the "Add more..." button when it
shouldn't.
- Now call it from the template itself, so the value is 'always' loaded
when necessary.
2024-02-21 12:48:26 +01:00
..
access_log.go
api.go
api_org.go
api_test.go
base.go
captcha.go
context.go
context_cookie.go
context_model.go
context_request.go
context_response.go
context_template.go
context_test.go
csrf.go
org.go
package.go
pagination.go
permission.go
private.go
repo.go [BUG] Load AllUnitsEnabled when necessary 2024-02-21 12:48:26 +01:00
response.go
utils.go
xsrf.go
xsrf_test.go