1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/templates
Zettat123 30c1cd9775
Add tags list for repos whose release setting is disabled (#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`.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
2023-04-25 18:29:00 +02:00
..
admin Improve some modal action buttons (#24289) 2023-04-24 07:08:59 -04:00
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
base Improve some modal action buttons (#24289) 2023-04-24 07:08:59 -04:00
code Use data-tooltip-content for tippy tooltip (#23649) 2023-03-24 18:35:38 +08:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
devtest Improve some modal action buttons (#24289) 2023-04-24 07:08:59 -04:00
explore Allow using localized absolute date times within phrases with place holders and localize issue due date events (#24275) 2023-04-23 15:12:33 -04:00
mail Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
org Improve some modal action buttons (#24289) 2023-04-24 07:08:59 -04:00
package Allow using localized absolute date times within phrases with place holders and localize issue due date events (#24275) 2023-04-23 15:12:33 -04:00
projects Improve some modal action buttons (#24289) 2023-04-24 07:08:59 -04:00
repo Add tags list for repos whose release setting is disabled (#23465) 2023-04-25 18:29:00 +02:00
shared Improve some modal action buttons (#24289) 2023-04-24 07:08:59 -04:00
status Improve some modal action buttons (#24289) 2023-04-24 07:08:59 -04:00
swagger Fix typo in API route (#24310) 2023-04-24 20:44:27 +02:00
user Improve some modal action buttons (#24289) 2023-04-24 07:08:59 -04:00
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 2023-04-01 13:47:54 +08:00
install.tmpl Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
post-install.tmpl Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00