The only remaining (hard) part is "templates/repo/editor/edit.tmpl", see the FIXME By the way: * Make "user unfollow" use basic color but not red color, indeed it is not dangerous * Fix "org folllow" layout (use block gap instead of inline gap)
8 lines
271 B
Handlebars
8 lines
271 B
Handlebars
<button class="ui basic button" data-fetch-method="post" data-fetch-url="{{.Org.HomeLink}}?action={{if $.IsFollowing}}unfollow{{else}}follow{{end}}">
|
|
{{if $.IsFollowing}}
|
|
{{ctx.Locale.Tr "user.unfollow"}}
|
|
{{else}}
|
|
{{ctx.Locale.Tr "user.follow"}}
|
|
{{end}}
|
|
</button>
|