@@ -14,6 +14,7 @@ import (
14
14
"code.gitea.io/gitea/models/db"
15
15
repo_model "code.gitea.io/gitea/models/repo"
16
16
user_model "code.gitea.io/gitea/models/user"
17
+ "code.gitea.io/gitea/modules/base"
17
18
"code.gitea.io/gitea/modules/context"
18
19
"code.gitea.io/gitea/modules/git"
19
20
"code.gitea.io/gitea/modules/log"
@@ -26,6 +27,10 @@ import (
26
27
shared_user "code.gitea.io/gitea/routers/web/shared/user"
27
28
)
28
29
30
+ const (
31
+ tplProfileBigAvatar base.TplName = "shared/user/profile_big_avatar"
32
+ )
33
+
29
34
// OwnerProfile render profile page for a user or a organization (aka, repo owner)
30
35
func OwnerProfile (ctx * context.Context ) {
31
36
if strings .Contains (ctx .Req .Header .Get ("Accept" ), "application/rss+xml" ) {
@@ -309,8 +314,10 @@ func Action(ctx *context.Context) {
309
314
310
315
if err != nil {
311
316
log .Error ("Failed to apply action %q: %v" , ctx .FormString ("action" ), err )
312
- ctx .JSONError ( fmt .Sprintf ("Action %q failed" , ctx .FormString ("action" )))
317
+ ctx .Error ( http . StatusBadRequest , fmt .Sprintf ("Action %q failed" , ctx .FormString ("action" )))
313
318
return
314
319
}
315
- ctx .JSONOK ()
320
+
321
+ shared_user .PrepareContextForProfileBigAvatar (ctx )
322
+ ctx .HTML (http .StatusOK , tplProfileBigAvatar )
316
323
}
0 commit comments