forgejo/routers/web/repo
Beowulf c54896ba70 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>
2024-04-28 13:47:52 +00:00
..
actions Fix bugs in rerunning jobs (#29955) 2024-03-26 19:04:26 +01:00
badges Fix repo badges when the label or text contains dashes 2024-03-20 22:41:20 +01:00
flags
setting [PORT] gitea#30430: Fix rename branch 500 when the target branch is deleted but exist in database 2024-04-15 16:03:09 +02: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:47:52 +00:00
attachment.go
blame.go Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
branch.go
cherry_pick.go
code_frequency.go
commit.go Use db.ListOptionsAll instead of db.ListOptions{ListAll: true} (#29995) 2024-03-26 19:04:27 +01:00
compare.go feat(api): implement branch/commit comparison API (#30349) 2024-04-21 11:58:18 +02:00
contributors.go
download.go
editor.go [BUG] Use correct template for commitmail error 2024-04-02 15:08:53 +02:00
editor_test.go
find.go Escape paths for find file correctly (#30026) 2024-03-26 19:04:27 +01:00
githttp.go
githttp_test.go
helper.go
helper_test.go
issue.go comment: save empty comments 2024-04-25 11:21:39 +02:00
issue_content_history.go Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
issue_dependency.go
issue_label.go [GITEA] Apply changes to archived labels 2024-04-01 17:46:02 +05:00
issue_label_test.go
issue_lock.go
issue_pin.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go Move watching sub-template to sidebar folder 2024-04-28 12:56:28 +02:00
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) 2024-04-15 20:01:36 +02:00
projects_test.go
pull.go Use db.ListOptionsAll instead of db.ListOptions{ListAll: true} (#29995) 2024-03-26 19:04:27 +01:00
pull_review.go Do some performance optimize for issues list and view issue/pull (gitea#29515) 2024-04-08 14:47:31 +02:00
pull_review_test.go [TESTS] pull review deleted from gitea#29888 2024-03-31 13:53:47 +02:00
recent_commits.go
release.go [FEAT]Add Option to hide Release Archive links (#3139) 2024-04-24 15:15:55 +00:00
release_test.go
render.go Refactor render (#30136) 2024-03-30 07:17:31 +01:00
repo.go Count downloads for tag archives 2024-04-08 12:51:27 +02:00
search.go fix code search template 2024-04-11 14:52:37 +00:00
topic.go
treelist.go
view.go s/Gitea/Forgejo in various log messages and comments 2024-04-21 21:26:15 +05:00
view_test.go
wiki.go
wiki_test.go