File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import (
2929
3030const (
3131 tplProfileBigAvatar base.TplName = "shared/user/profile_big_avatar"
32- tplFollowUnfollow base.TplName = "shared/user /follow_unfollow"
32+ tplFollowUnfollow base.TplName = "org /follow_unfollow"
3333)
3434
3535// 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 2626 </a>
2727 {{end}}
2828 {{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" .}}
3630 {{end}}
3731 </div>
3832 </div>
You can’t perform that action at this time.
0 commit comments