Leftover from https://github.com/go-gitea/gitea/pull/29005 # Before  # After  --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com> (cherry picked from commit aa6f88638fb827d5c5ed7506e5fc06dad92beea7)
7 lines
247 B
Go HTML Template
7 lines
247 B
Go HTML Template
<button class="ui basic button gt-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>
|