gitea/routers/web/repo
Yarden Shoham f2a9951741
Update the list of watchers and stargazers when clicking watch/unwatch or star/unstar (#32570)
We make sure the user cards are updated

- Fixes https://github.com/go-gitea/gitea/issues/32561

I also removed `ctx.Data["PageIsWatchers"] = true` and
`ctx.Data["PageIsStargazers"] = true` as they are not used anywhere.

# Before

![before](https://github.com/user-attachments/assets/e3bc3235-35eb-4eda-862d-bdf2510282ea)

# After

![after](https://github.com/user-attachments/assets/bc0488a5-8399-4cf6-95c9-17328a9702eb)

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
2024-11-22 18:51:51 +00:00
..
actions Fix `missing signature key` error when pulling Docker images with `SERVE_DIRECT` enabled (#32365) 2024-10-31 15:28:25 +00:00
setting Refactor push mirror find and add check for updating push mirror (#32539) 2024-11-18 05:59:04 +00:00
activity.go Replace DateTime with DateUtils (#32383) 2024-11-02 04:08:28 +00:00
attachment.go Fix `missing signature key` error when pulling Docker images with `SERVE_DIRECT` enabled (#32365) 2024-10-31 15:28:25 +00:00
blame.go Refactor DateUtils and merge TimeSince (#32409) 2024-11-04 11:30:00 +00:00
branch.go Support repo license (#24872) 2024-10-01 15:25:08 -04:00
cherry_pick.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
code_frequency.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
commit.go Refactor markup render system (#32589) 2024-11-22 05:48:09 +00:00
compare.go Refactor markup render system (#32589) 2024-11-22 05:48:09 +00:00
contributors.go Fix Activity Page Contributors dropdown (#31264) 2024-06-06 10:28:33 +08:00
download.go Fix `missing signature key` error when pulling Docker images with `SERVE_DIRECT` enabled (#32365) 2024-10-31 15:28:25 +00:00
editor.go Notify the user when the file path contains leading or trailing spaces and fix the error message for invalid file names. (#31507) 2024-09-24 19:06:52 +00:00
editor_test.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
find.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
fork.go Use db.ListOptionsAll instead of db.ListOptions{ListAll: true} (#29995) 2024-03-22 13:53:52 +01:00
githttp.go Fix git error handling (#32401) 2024-11-02 11:20:22 +00:00
githttp_test.go Fix http protocol auth (#27875) 2023-11-02 22:14:33 +08:00
helper.go Add option to filter board cards by labels and assignees (#31999) 2024-09-12 03:53:40 +00:00
issue.go Refactor markup render system (#32589) 2024-11-22 05:48:09 +00:00
issue_comment.go Refactor markup render system (#32589) 2024-11-22 05:48:09 +00:00
issue_content_history.go Refactor DateUtils and merge TimeSince (#32409) 2024-11-04 11:30:00 +00:00
issue_dependency.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
issue_label.go Refactor sidebar label selector (#32460) 2024-11-10 08:26:42 +00:00
issue_label_test.go Refactor sidebar label selector (#32460) 2024-11-10 08:26:42 +00:00
issue_list.go Move some functions from issue.go to standalone files (#32468) 2024-11-11 04:28:54 +00:00
issue_lock.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
issue_new.go Move some functions from issue.go to standalone files (#32468) 2024-11-11 04:28:54 +00:00
issue_page_meta.go Fix get reviewers' bug (#32415) 2024-11-22 10:44:48 -05:00
issue_pin.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
issue_poster.go Move some functions from issue.go to standalone files (#32468) 2024-11-11 04:28:54 +00:00
issue_stopwatch.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
issue_suggestions.go Fix suggestions for issues (#32380) 2024-10-30 20:06:36 +00:00
issue_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
issue_timetrack.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
issue_view.go Refactor markup render system (#32589) 2024-11-22 05:48:09 +00:00
issue_watch.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
middlewares.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
migrate.go Fix javascript error when an anonymous user visiting migration page (#32144) 2024-10-02 04:37:16 +00:00
milestone.go Refactor markup render system (#32589) 2024-11-22 05:48:09 +00:00
packages.go Remove AddParamIfExist(AddParam) (#29841) 2024-03-16 12:07:56 +00:00
patch.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
projects.go Refactor markup render system (#32589) 2024-11-22 05:48:09 +00:00
projects_test.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
pull.go Add line-through for deleted branch on pull request view page (#32500) 2024-11-21 17:04:18 +00:00
pull_review.go Move some functions from issue.go to standalone files (#32468) 2024-11-11 04:28:54 +00:00
pull_review_test.go Fix template error when comment review doesn't exist (#29888) 2024-03-19 04:19:48 +00:00
recent_commits.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
release.go Refactor markup render system (#32589) 2024-11-22 05:48:09 +00:00
release_test.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
render.go Refactor markup render system (#32589) 2024-11-22 05:48:09 +00:00
repo.go Update the list of watchers and stargazers when clicking watch/unwatch or star/unstar (#32570) 2024-11-22 18:51:51 +00:00
search.go Improve grep search (#30843) 2024-05-03 09:13:48 +00:00
search_test.go Improve grep search (#30843) 2024-05-03 09:13:48 +00:00
topic.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
treelist.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
view.go Update the list of watchers and stargazers when clicking watch/unwatch or star/unstar (#32570) 2024-11-22 18:51:51 +00:00
view_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
wiki.go Refactor markup render system (#32589) 2024-11-22 05:48:09 +00:00
wiki_test.go Fix raw wiki links (#31825) 2024-08-16 20:40:51 +08:00