aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/templates/users/partials/article-favorite-button.tmpl
diff options
context:
space:
mode:
authorVikas Kushwaha <dev@vikas.rocks>2025-02-11 17:50:21 +0530
committerVikas Kushwaha <dev@vikas.rocks>2025-02-11 17:50:21 +0530
commite44397dcbb9454f89b8263738d5ccf1e20a12074 (patch)
tree1c2b5816c597ddd10c7afb68ed2af7cc2c26d56d /cmd/web/templates/users/partials/article-favorite-button.tmpl
parentc720f1f85e5ec7c93604462b7a70e1f84a1ce244 (diff)
Substituted 'article' with 'project' in filenamesHEADmaster
Diffstat (limited to 'cmd/web/templates/users/partials/article-favorite-button.tmpl')
-rw-r--r--cmd/web/templates/users/partials/article-favorite-button.tmpl12
1 files changed, 0 insertions, 12 deletions
diff --git a/cmd/web/templates/users/partials/article-favorite-button.tmpl b/cmd/web/templates/users/partials/article-favorite-button.tmpl
deleted file mode 100644
index 5a70718..0000000
--- a/cmd/web/templates/users/partials/article-favorite-button.tmpl
+++ /dev/null
@@ -1,12 +0,0 @@
-<button class="btn btn-outline-primary btn-sm pull-xs-right {{ if .Project.IsFavorited }} active {{ end }}"
- hx-post="/htmx/users/projects/{{ .Project.Slug }}/favorite"
-
- {{ if .IsSelf }}
- hx-swap="delete"
- hx-target="closest .post-preview"
- {{ else }}
- hx-swap="outerHTML"
- {{ end }}
->
- <i class="ion-heart"></i> {{ .Project.GetFavoriteCount }}
-</button> \ No newline at end of file