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 Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
attachment.go [FEAT] allow setting the update date on issues and comments 2024-02-05 14:44:33 +01:00
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 Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
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 Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
redirect.go
redirect_test.go
release.go Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
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 Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
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 Move some repository transfer functions to service layer (#28855) 2024-02-05 06:17:23 +00:00
upload.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
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