+++ /dev/null
-[%# this file is deprecated... %]
-<div id="comments">
- [%- INCLUDE common/comment/comment_header -%]
- [%- helpers.ad_code("comment-header-bottom") %]
- <ol>
- <li v-for="comment in comments" v-if="comment.pid == 0">
- <comment :comment="comment"></comment>
- <comment-node :parent="comment"></comment-node>
- </li>
- <comment-form :reply="rootReply" v-if="commentAllowed"></comment-form>
- </ol>
-</div>
-
-<script type="text/x-template" id="comment-template">
- [%- INCLUDE common/comment/comment comment={} x_template=1 -%]
-</script>
-
-<script type="text/x-template" id="comment-form-template">
- <div class="comment-form">
- [%- INCLUDE common/comment/comment_form -%]
- </div>
-</script>
-
-<script type="text/x-template" id="comment-node-template">
- <ol>
- <li><comment-form :reply="parent.reply"></comment-form></li>
- <li v-for="comment in parent.children">
- <comment :comment="comment"></comment>
- <comment-node :parent="comment"></comment-node>
- </li>
- </ol>
-</script>
-
-[% helpers.load_js("comments.js") %]
-[%# <script src="/js/comments.js" ></script> %]
-
-[%
-IF discussion.discussion_id; discussion_id = discussion.discussion_id;
-ELSE; discussion_id = 0;
-END;
-IF discussion.type == 'open'; archived = 0;
-ELSE; archived = 1;
-END
-%]
-
-<script>
- comments.run({ el: "#comments",
- userConfig: userConfig,
- user: user,
- type: "[% discussion.kind %]",
- discussion_id: [% discussion_id %],
- archived: [% archived %],
- modReasons: modReasons,
- });
-</script>
<comment-header></comment-header>
</div>
<div class="comment-tree-body">
- <ol>
+ <ol class="comment-tree">
<li v-for="comment in comments" v-if="!comment.pid || comment.pid == rootId">
<comment :comment="comment"></comment>
</li>
<script type="text/x-template" id="comment-template">
<div class="comment-wrap">
[%- INCLUDE common/comment/comment comment={} x_template=1 -%]
- <ol>
+ <ol class="comment-tree">
<li v-if="isFormVisible">
<comment-form :reply-to="comment" v-on:finish-edit="hideReplyForm()"></comment-form>
</li>