File tree 3 files changed +9
-8
lines changed 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import (
29
29
30
30
const (
31
31
tplProfileBigAvatar base.TplName = "shared/user/profile_big_avatar"
32
- tplFollowUnfollow base.TplName = "shared/user /follow_unfollow"
32
+ tplFollowUnfollow base.TplName = "org /follow_unfollow"
33
33
)
34
34
35
35
// OwnerProfile render profile page for a user or a organization (aka, repo owner)
Original file line number Diff line number Diff line change
1
+ <button class="ui basic button gt-mr-0" hx-post="{{.Org.HomeLink}}?action={{if $.IsFollowing}}unfollow{{else}}follow{{end}}">
2
+ {{if $.IsFollowing}}
3
+ {{ctx.Locale.Tr "user.unfollow"}}
4
+ {{else}}
5
+ {{ctx.Locale.Tr "user.follow"}}
6
+ {{end}}
7
+ </button>
Original file line number Diff line number Diff line change 26
26
</a>
27
27
{{end}}
28
28
{{if .IsSigned}}
29
- <button class="ui basic button gt-mr-0" hx-post="{{.Org.HomeLink}}?action={{if $.IsFollowing}}unfollow{{else}}follow{{end}}">
30
- {{if $.IsFollowing}}
31
- {{ctx.Locale.Tr "user.unfollow"}}
32
- {{else}}
33
- {{ctx.Locale.Tr "user.follow"}}
34
- {{end}}
35
- </button>
29
+ {{template "org/follow_unfollow" .}}
36
30
{{end}}
37
31
</div>
38
32
</div>
You can’t perform that action at this time.
0 commit comments