aboutsummaryrefslogtreecommitdiffstats
path: root/templates/org/follow_unfollow.tmpl
blob: ba0bd01efe44dbb4c9a179517c256606ffa5bd21 (plain)
1
2
3
4
5
6
7
<button class="ui basic button tw-mr-0" hx-post="{{.Org.HomeLink}}?action={{if $.IsFollowing}}unfollow{{else}}follow{{end}}">
	{{if $.IsFollowing}}
		{{ctx.Locale.Tr "user.unfollow"}}
	{{else}}
		{{ctx.Locale.Tr "user.follow"}}
	{{end}}
</button>