aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/templates/articles/partials/detail-post-meta.tmpl
diff options
context:
space:
mode:
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