mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-21 01:10:19 +00:00
Following up fixes for "Fix inconsistent user profile layout across tabs" (#25739)
Follow https://github.com/go-gitea/gitea/pull/25625#issuecomment-1621577816 1. Fix the incorrect "project view" layout 2. Fix the "follow/unfollow" link on "packages" and "projects" tab Before:  After:  --------- Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
parent
a6a9389c70
commit
128d77a3a0
5 changed files with 19 additions and 28 deletions
|
@ -287,9 +287,9 @@ func Action(ctx *context.Context) {
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
ctx.ServerError(fmt.Sprintf("Action (%s)", ctx.FormString("action")), err)
|
||||
log.Error("Failed to apply action %q: %v", ctx.FormString("action"), err)
|
||||
ctx.JSONError(fmt.Sprintf("Action %q failed", ctx.FormString("action")))
|
||||
return
|
||||
}
|
||||
// FIXME: We should check this URL and make sure that it's a valid Gitea URL
|
||||
ctx.RedirectToFirst(ctx.FormString("redirect_to"), ctx.ContextUser.HomeLink())
|
||||
ctx.JSONOK()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue