From 6774e37ef5f4d95d699a620d33bb9d077f2b62a4 Mon Sep 17 00:00:00 2001 From: Nikolai Lopin Date: Wed, 3 Jul 2024 10:07:30 +0200 Subject: [PATCH] fix: place reply form as sibling to comments --- frontend/html/posts/show/battle.html | 7 ++----- frontend/html/posts/show/layout.html | 8 ++------ .../components/{ReplyContainer.vue => ReplyForm.vue} | 10 +++++----- frontend/static/js/main.js | 2 +- 4 files changed, 10 insertions(+), 17 deletions(-) rename frontend/static/js/components/{ReplyContainer.vue => ReplyForm.vue} (94%) diff --git a/frontend/html/posts/show/battle.html b/frontend/html/posts/show/battle.html index 443f8f126..058603408 100644 --- a/frontend/html/posts/show/battle.html +++ b/frontend/html/posts/show/battle.html @@ -108,20 +108,17 @@ {% if comments %} {% if post.is_commentable and me %} - + > {% endif %}
{% include "comments/list.html" with comments=comments reply_form=reply_form type="battle" %}
- {% if post.is_commentable and me %} -
- {% endif %} {% endif %} {% if me and me.is_active_membership and post.is_commentable and post.is_visible or me.is_moderator %} diff --git a/frontend/html/posts/show/layout.html b/frontend/html/posts/show/layout.html index 56c88d7ac..740a682ca 100644 --- a/frontend/html/posts/show/layout.html +++ b/frontend/html/posts/show/layout.html @@ -77,22 +77,18 @@ {% if comments %} {% if post.is_commentable and me %} - + > {% endif %}
{% include "comments/list.html" with comments=comments reply_form=reply_form type="normal" muted_user_ids=muted_user_ids %}
- - {% if post.is_commentable and me %} -
- {% endif %} {% endif %} {% if me and me.is_active_membership and post.is_commentable and post.is_visible or me.is_moderator %} diff --git a/frontend/static/js/components/ReplyContainer.vue b/frontend/static/js/components/ReplyForm.vue similarity index 94% rename from frontend/static/js/components/ReplyContainer.vue rename to frontend/static/js/components/ReplyForm.vue index 3a5b7465f..f31c4c100 100644 --- a/frontend/static/js/components/ReplyContainer.vue +++ b/frontend/static/js/components/ReplyForm.vue @@ -28,7 +28,7 @@