aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/templates/articles/partials/detail-post-meta.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/articles/partials/detail-post-meta.tmpl
parentc720f1f85e5ec7c93604462b7a70e1f84a1ce244 (diff)
Substituted 'article' with 'project' in filenamesHEADmaster
Diffstat (limited to 'cmd/web/templates/articles/partials/detail-post-meta.tmpl')
-rw-r--r--cmd/web/templates/articles/partials/detail-post-meta.tmpl42
1 files changed, 0 insertions, 42 deletions
diff --git a/cmd/web/templates/articles/partials/detail-post-meta.tmpl b/cmd/web/templates/articles/partials/detail-post-meta.tmpl
deleted file mode 100644
index eb957b4..0000000
--- a/cmd/web/templates/articles/partials/detail-post-meta.tmpl
+++ /dev/null
@@ -1,42 +0,0 @@
-<div class="post-meta">
- <a href="#"><img src="{{ .Project.User.Image }}" /></a>
- <div class="info">
- <a href="/users/{{ .Project.User.Username }}"
- hx-push-url="/users/{{ .Project.User.Username }}"
- hx-get="/htmx/users/{{ .Project.User.Username }}"
- hx-target="#app-body"
- class="author"
- >
- {{ .Project.User.Name }}
- </a>
- <span class="date">{{ .Project.GetFormattedCreatedAt }}</span>
- </div>
-
- {{ if .IsSelf }}
-
- <button class="btn btn-outline-secondary btn-sm edit-button"
- hx-get="/htmx/editor/{{ .Project.Slug }}"
- hx-target="#app-body"
- hx-push-url="/editor/{{ .Project.Slug }}"
- >
- <i class="ion-edit"></i>
- Edit Project
- </button>
-
- <button class="btn btn-outline-danger btn-sm delete-button"
- hx-delete="/htmx/projects/{{ .Project.Slug }}"
- hx-target="#app-body"
- hx-confirm="Are you sure you wish to delete the project?"
- >
- <i class="ion-trash-a"></i>
- Delete Project
- </button>
-
- {{ else }}
-
- {{ template "projects/partials/follow-button" . }}
-
- {{ template "projects/partials/favorite-button" . }}
-
- {{ end }}
-</div> \ No newline at end of file