forgejo/models/repo
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
..
archiver.go
attachment.go
attachment_test.go
avatar.go
collaboration.go [MODERATION] User blocking 2024-02-05 15:56:45 +01:00
collaboration_test.go [MODERATION] User blocking 2024-02-05 15:56:45 +01:00
fork.go
fork_test.go
git.go Add merge style fast-forward-only (#28954) 2024-02-14 17:19:19 +01:00
issue.go
language_stats.go
main_test.go
mirror.go
pushmirror.go [GITEA] new doctor check: fix-push-mirrors-without-git-remote (#1853) 2024-02-05 16:09:41 +01:00
pushmirror_test.go
redirect.go
redirect_test.go
release.go
release_test.go
repo.go [BUG] Load AllUnitsEnabled when necessary 2024-02-21 12:48:26 +01:00
repo_flags.go [FEAT] Repository flags 2024-02-05 16:09:42 +01:00
repo_flags_test.go [FEAT] Repository flags 2024-02-05 16:09:42 +01:00
repo_indexer.go
repo_list.go
repo_list_test.go [GITEA] Improve HTML title on repositories 2024-02-05 16:05:50 +01:00
repo_test.go
repo_unit.go Add merge style fast-forward-only (#28954) 2024-02-14 17:19:19 +01:00
repo_unit_test.go [GITEA] Optionally allow anyone to edit Wikis 2024-02-05 16:09:42 +01:00
search.go
star.go
star_test.go
topic.go [GITEA] Fix the topic search paging 2024-02-05 16:09:43 +01:00
topic_test.go
update.go
upload.go
user_repo.go [MODERATION] User blocking 2024-02-05 15:56:45 +01:00
user_repo_test.go [MODERATION] User blocking 2024-02-05 15:56:45 +01:00
watch.go [MODERATION] Refactor excluding watchers mechanism (squash) 2024-02-05 15:56:58 +01:00
watch_test.go [MODERATION] Refactor excluding watchers mechanism (squash) 2024-02-05 15:56:58 +01:00
wiki.go
wiki_test.go