mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 14:53:34 +01:00
c54896ba70
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>
19 lines
706 B
Go HTML Template
19 lines
706 B
Go HTML Template
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository commits">
|
|
{{template "repo/header" .}}
|
|
<div class="ui container flex-container">
|
|
{{if and (not .IsEmptyRepo) (.Permission.CanRead $.UnitTypeCode)}}
|
|
<div class="flex-container-nav">
|
|
{{template "repo/navbar" .}}
|
|
</div>
|
|
{{end}}
|
|
<div class="flex-container-main">
|
|
{{if .PageIsPulse}}{{template "repo/pulse" .}}{{end}}
|
|
{{if .PageIsContributors}}{{template "repo/contributors" .}}{{end}}
|
|
{{if .PageIsCodeFrequency}}{{template "repo/code_frequency" .}}{{end}}
|
|
{{if .PageIsRecentCommits}}{{template "repo/recent_commits" .}}{{end}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|
|
|