From d8e31f37590ede2d29c49a210998fd8196a1f265 Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Sat, 17 Feb 2024 12:04:41 +0000 Subject: [PATCH 1/2] Fix missing template for follow button in organization Signed-off-by: Yarden Shoham --- 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 e7f133e98161e..37ce450530452 100644 --- a/routers/web/user/profile.go +++ b/routers/web/user/profile.go @@ -29,7 +29,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 0000000000000..b9a3bb77fea30 --- /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 322be3271d3e4..9029c21b872c6 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -26,13 +26,7 @@ {{end}} {{if .IsSigned}} - + {{template "org/follow_unfollow" .}} {{end}} From 71191aff866ae1c40535130f4b82c0c45b605b5a Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Sat, 17 Feb 2024 12:16:21 +0000 Subject: [PATCH 2/2] Lint --- templates/org/home.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl index 9029c21b872c6..81a76d3b4d451 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -26,7 +26,7 @@ {{end}} {{if .IsSigned}} - {{template "org/follow_unfollow" .}} + {{template "org/follow_unfollow" .}} {{end}}