diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go index e7f133e98..37ce45053 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 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 322be3271..81a76d3b4 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -26,13 +26,7 @@ {{end}} {{if .IsSigned}} - + {{template "org/follow_unfollow" .}} {{end}}