diff options
Diffstat (limited to 'cmd/web/templates/articles/partials/comments-form.tmpl')
-rw-r--r-- | cmd/web/templates/articles/partials/comments-form.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web/templates/articles/partials/comments-form.tmpl b/cmd/web/templates/articles/partials/comments-form.tmpl index 09f9697..3fe5064 100644 --- a/cmd/web/templates/articles/partials/comments-form.tmpl +++ b/cmd/web/templates/articles/partials/comments-form.tmpl @@ -1,5 +1,5 @@ <form id="article-comment-form" class="card comment-form" - hx-post="/htmx/articles/{{ .Article.Slug }}/comments" + hx-post="/htmx/articles/{{ .Project.Slug }}/comments" hx-target="#article-comments-wrapper" hx-swap="afterbegin show:top" {{ if .IsOob }} @@ -10,7 +10,7 @@ <textarea class="form-control" placeholder="Write a comment..." rows="3" name="comment"></textarea> </div> <div class="card-footer"> - <img src="{{ .Article.User.Image }}" class="comment-author-img" /> + <img src="{{ .Project.User.Image }}" class="comment-author-img" /> <button class="btn btn-sm btn-primary"> Post Comment </button> |