1
0
Fork 0
forgejo/templates/org/follow_unfollow.tmpl

8 lines
247 B
Go HTML Template
Raw Permalink Normal View History

<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>