1
1
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-28 00:11:38 +02:00
gitea/routers/web
silverwind 6da8027446
Fix inconsistent disabled styling on logged-out repo header buttons (#37406)
Make the watch, star, and fork buttons in the repo header consistent for
logged-out users:

- Apply the same look to all three buttons (number labels
included), instead of only the action button being grayed.
- Clicking any of them while logged out now leads to the login page
(with a redirect back) instead of being inert.
- Split the per-button markup out of `header.tmpl` into a dedicated
`templates/repo/header/` folder (`fork.tmpl`, `star.tmpl`,
`watch.tmpl`).

---------

Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-04-27 17:33:10 +00:00
..
admin Refactor LDAP tests (#37274) 2026-04-18 19:32:49 +00:00
auth Fix URL related escaping for oauth2 (#37334) 2026-04-21 23:58:32 +08:00
devtest Fix color regressions, add priority color (#37417) 2026-04-25 19:08:10 +02:00
events Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
explore Fix CodeQL code scanning alerts (#36858) 2026-03-08 14:35:50 +00:00
feed Refactor flash message and remove SanitizeHTML template func (#37179) 2026-04-12 10:17:25 +08:00
healthcheck Correct spelling (#36783) 2026-02-28 11:23:20 -08:00
misc refactor: serve site manifest via /assets/site-manifest.json endpoint (#37405) 2026-04-24 13:00:59 +00:00
org Fix org team assignee/reviewer lookups for team member permissions (#37365) 2026-04-23 18:14:29 +02:00
repo Fix inconsistent disabled styling on logged-out repo header buttons (#37406) 2026-04-27 17:33:10 +00:00
shared Fix repo init README EOL (#37388) 2026-04-23 18:33:16 +00:00
user refactor: use named Permission field in Repository struct instead of anonymous embedding (#37441) 2026-04-26 20:18:28 +00:00
base.go Refactor storage content-type handling of ServeDirectURL (#36804) 2026-03-21 21:26:13 -07:00
githttp.go Refactor auth middleware (#36848) 2026-03-08 17:59:46 +08:00
goget.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
home.go Remove dead code identified by deadcode tool (#37271) 2026-04-20 07:52:48 +00:00
metrics.go
nodeinfo.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
passkey.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
swagger_json.go Improve OAuth2 provider (correct Issuer, respect ENABLED) (#34966) 2025-07-06 13:36:45 +08:00
web.go Use MarkLongPolling instead of hard-coded route path (#37427) 2026-04-26 11:42:29 +00:00
webfinger.go Fix context usages (#35348) 2025-08-27 11:00:01 +00:00