diff options
author | Vikas Kushwaha <dev@vikas.rocks> | 2025-02-11 17:45:19 +0530 |
---|---|---|
committer | Vikas Kushwaha <dev@vikas.rocks> | 2025-02-11 17:45:19 +0530 |
commit | d7d066cfa1cd16dd502000077696388043c4dab9 (patch) | |
tree | f43b009ae023f1aec580f0096e7712861cbab655 /cmd/web/templates/users/partials/article-favorite-button.tmpl | |
parent | a28b31e0f40a34674a7e14405d21bdbc5d53c2fb (diff) |
Substituted 'Article' with 'Project'
Diffstat (limited to 'cmd/web/templates/users/partials/article-favorite-button.tmpl')
-rw-r--r-- | cmd/web/templates/users/partials/article-favorite-button.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/web/templates/users/partials/article-favorite-button.tmpl b/cmd/web/templates/users/partials/article-favorite-button.tmpl index c63182a..ffa4613 100644 --- a/cmd/web/templates/users/partials/article-favorite-button.tmpl +++ b/cmd/web/templates/users/partials/article-favorite-button.tmpl @@ -1,5 +1,5 @@ -<button class="btn btn-outline-primary btn-sm pull-xs-right {{ if .Article.IsFavorited }} active {{ end }}" - hx-post="/htmx/users/articles/{{ .Article.Slug }}/favorite" +<button class="btn btn-outline-primary btn-sm pull-xs-right {{ if .Project.IsFavorited }} active {{ end }}" + hx-post="/htmx/users/articles/{{ .Project.Slug }}/favorite" {{ if .IsSelf }} hx-swap="delete" @@ -8,5 +8,5 @@ hx-swap="outerHTML" {{ end }} > - <i class="ion-heart"></i> {{ .Article.GetFavoriteCount }} + <i class="ion-heart"></i> {{ .Project.GetFavoriteCount }} </button>
\ No newline at end of file |