]> source.dussan.org Git - gitea.git/commit
Don't do a full page load when clicking `Watch` or `Star` (#29001)
authorYarden Shoham <git@yardenshoham.com>
Mon, 5 Feb 2024 09:56:20 +0000 (11:56 +0200)
committerGitHub <noreply@github.com>
Mon, 5 Feb 2024 09:56:20 +0000 (09:56 +0000)
commit6992ef98fc227a60cf06e0a06b9ae2492b3d61be
treefb2d54808df8e6f0f5e16c46f43a13d716a25f73
parent0d136df3f0b3920d34ce850499e1346fbff29e30
Don't do a full page load when clicking `Watch` or `Star` (#29001)

- The watch/unwatch button and star/unstar get their own template
- The backend returns HTML instead of redirect

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
routers/web/repo/repo.go
templates/repo/header.tmpl
templates/repo/star_unstar.tmpl [new file with mode: 0644]
templates/repo/watch_unwatch.tmpl [new file with mode: 0644]