Unify organizations header (#29248)

Unify organizations header

before:

![image](74474e0d-33c3-4bbf-9324-d130ea2c62f8)

after:

![image](1c65de0d-fa0f-4b17-ab8d-067de8c7113b)

---------

Co-authored-by: silverwind <me@silverwind.io>
(cherry picked from commit 532e422027c88a4a3dc0c2968857f8d5f94d861f)

Conflicts:
	routers/web/shared/user/header.go
	templates/org/home.tmpl
	context
This commit is contained in:
Tim-Nicas Oelschläger 2024-02-23 01:24:57 +01:00 committed by Earl Warren
parent 643d66ee0e
commit 4b494d341f
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
15 changed files with 95 additions and 154 deletions

View file

@ -355,6 +355,7 @@ func Action(ctx *context.Context) {
ctx.HTML(http.StatusOK, tplProfileBigAvatar)
return
} else if ctx.ContextUser.IsOrganization() {
ctx.Data["Org"] = ctx.ContextUser
ctx.Data["IsFollowing"] = ctx.Doer != nil && user_model.IsFollowing(ctx, ctx.Doer.ID, ctx.ContextUser.ID)
ctx.HTML(http.StatusOK, tplFollowUnfollow)
return