forgejo/routers
Zettat123 eeee32cdc3
Add tags list for repos whose release setting is disabled (#23465) (#24369)
Backport #23465

Close #23427

Co-Author: @wxiaoguang

If a repo's release setting is enabled, the logic has't changed.
Clicking the "Tags" button will jump to `/{user}/{repo}/tags` and
`templates/repo/release/list.tmpl` template will be used.

<img
src="https://user-images.githubusercontent.com/15528715/224939362-bd8974fd-08b0-4f79-a114-3389d15847ca.png"
width="600px" />

If the release setting is disabled, clicking the "Tags" button will
still jump to `/{user}/{repo}/tags` but a new template
`templates/repo/tag/list.tmpl` will be used.

<img
src="https://user-images.githubusercontent.com/15528715/233834564-74741e49-f4e9-47c8-ac12-e306642798dc.png"
width="600px" />

Since both templates above need to render the tags list, I moved the
tags list to a shared template located in
`templates/repo/tag/table.tmpl`.

(cherry picked from commit e301e26d7a)
2023-04-28 08:58:05 +02:00
..
api Require repo scope for PATs for private repos and basic authentication (#24362) (#24364) 2023-04-28 08:58:05 +02:00
common Support sanitising the URL by removing extra slashes in the URL (#21333) (#23300) 2023-03-05 02:14:12 -05:00
install [BRANDING] Rebrand default config settings for new installs (#140) 2023-04-22 16:53:13 +02:00
private Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
utils Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web Add tags list for repos whose release setting is disabled (#23465) (#24369) 2023-04-28 08:58:05 +02:00
init.go [API] Forgejo API /api/forgejo/v1 2023-04-22 11:31:28 +02:00