blob: 7184278488759c6a126099a87655db7b5c1338f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<button class="btn btn-sm btn-outline-secondary follow-button"
hx-post="/htmx/articles/follow-user/{{ .Article.Slug }}"
{{ if .IsOob }}
hx-swap-oob="outerHTML:.follow-button"
{{ end }}
>
{{ if .IsFollowed }}
<i class="ion-minus-round"></i>
Unfollow
{{ else }}
<i class="ion-plus-round"></i>
Follow
{{ end }}
{{ .Article.User.Name }}
<span class="counter">({{ .Article.User.FollowersCount }})</span>
</button>
|