From a46fa02d5b5977040fee1f9501c2c45bf0301b76 Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Sat, 17 Feb 2024 15:42:52 +0200 Subject: [PATCH] Fix missing template for follow button in organization (#29215) Leftover from https://github.com/go-gitea/gitea/pull/29005 # Before ![before](https://github.com/go-gitea/gitea/assets/20454870/24c74278-ccac-4dc6-bf26-713e90c07239) # After ![after](https://github.com/go-gitea/gitea/assets/20454870/f91d503b-87d4-4c17-a56c-9c0a81fd9082) --------- Signed-off-by: Yarden Shoham (cherry picked from commit aa6f88638fb827d5c5ed7506e5fc06dad92beea7) --- routers/web/user/profile.go | 2 +- templates/org/follow_unfollow.tmpl | 7 +++++++ templates/org/home.tmpl | 8 +------- 3 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 templates/org/follow_unfollow.tmpl diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go index cc1953deb..1a9a9cf60 100644 --- a/routers/web/user/profile.go +++ b/routers/web/user/profile.go @@ -31,7 +31,7 @@ import ( const ( tplProfileBigAvatar base.TplName = "shared/user/profile_big_avatar" - tplFollowUnfollow base.TplName = "shared/user/follow_unfollow" + tplFollowUnfollow base.TplName = "org/follow_unfollow" ) // OwnerProfile render profile page for a user or a organization (aka, repo owner) diff --git a/templates/org/follow_unfollow.tmpl b/templates/org/follow_unfollow.tmpl new file mode 100644 index 000000000..b9a3bb77f --- /dev/null +++ b/templates/org/follow_unfollow.tmpl @@ -0,0 +1,7 @@ + diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl index 2ca60cd1b..fd2326ffd 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -31,13 +31,7 @@ {{end}} {{if .IsSigned}} - + {{template "org/follow_unfollow" .}} {{end}}