0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-19 12:53:37 -05:00
forgejo/routers/web/repo
Beowulf 135764f244 Show repo activities even if only code unit active or git repo is empty but issue is active (#3455)
When all repository units are deactivated except for the code unit, the activity tab will not be shown.
Since the activities tab also shows contributing stats, it would be good to show the activities tab also when only code is active.
This commit changes the behavior when the activities tab is shown.
Previous it would only be shown when Issues, Pull-Requests or Releases are activated. Now it would additionally be shown when the code unit is activated.

Refs: #3429

| Before (Code + Issues - Owner) | Before (Code - Viewer) | After (Code + Issues - Owner) | After (Code - Viewer) |
| -- | -- | -- | -- |
| ![image](/attachments/2af997bc-1f38-48c6-bdf3-cfbd7087b220)  | ![image](/attachments/ef1797f0-5c9a-4a1a-ba82-749f3ab4f403) | ![image](/attachments/fd28a96c-04ca-407e-a70d-d28b393f223d) | ![image](/attachments/2cd0d559-a6de-4ca0-a736-29c5fea81b5a) |
|  | `/activity` returns 404 for everyone | ![image](/attachments/e0e97d8f-48cb-4c16-a505-1fafa46c4b8e)  | - |

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3455
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: Beowulf <beowulf@beocode.eu>
Co-committed-by: Beowulf <beowulf@beocode.eu>
(cherry picked from commit c54896ba70)
2024-04-28 13:50:45 +00:00
..
actions
badges
flags
setting [PORT] gitea#30430: Fix rename branch 500 when the target branch is deleted but exist in database 2024-04-15 15:52:24 +00:00
activity.go Show repo activities even if only code unit active or git repo is empty but issue is active (#3455) 2024-04-28 13:50:45 +00:00
attachment.go
blame.go
branch.go
cherry_pick.go
code_frequency.go
commit.go
compare.go [v7.0/forgejo] Fix "view file" button in diff compare view (#3077) 2024-04-06 13:24:55 +00:00
contributors.go
download.go
editor.go [BUG] Use correct template for commitmail error 2024-04-02 14:59:34 +00:00
editor_test.go
find.go
githttp.go
githttp_test.go
helper.go
helper_test.go
issue.go Fix missed doer (#30231) (#30343) 2024-04-15 16:21:45 +02:00
issue_content_history.go
issue_dependency.go
issue_label.go [GITEA] Apply changes to archived labels 2024-04-03 20:14:39 +00:00
issue_label_test.go
issue_lock.go
issue_pin.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
main_test.go
middlewares.go
migrate.go
milestone.go
packages.go
patch.go
projects.go Fix network error when open/close organization/individual projects and redirect to project page (#30387) (#30465) 2024-04-15 16:44:14 +02:00
projects_test.go
pull.go
pull_review.go Prevent re-review and dismiss review actions on closed and merged PRs (#30065) 2024-03-30 07:17:32 +01:00
pull_review_test.go [TESTS] pull review deleted from gitea#29888 2024-04-03 08:13:14 +00:00
recent_commits.go
release.go Fix release published actions not triggering for releases created from existing tags 2024-04-16 18:28:53 +00:00
release_test.go
render.go Refactor render (#30136) 2024-03-30 07:17:31 +01:00
repo.go
search.go [v7.0/forgejo] [BUG] Fix code search in explore reporting as git grep even with indexer enabled (#3204) 2024-04-14 14:21:31 +00:00
topic.go
treelist.go
view.go s/Gitea/Forgejo in various log messages and comments 2024-04-22 14:41:17 +00:00
view_test.go
wiki.go
wiki_test.go