distinct between none and false comments

This commit is contained in:
simon 2022-12-19 14:12:48 +07:00
parent 18f6455eb2
commit 3b4969dcea
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 9 additions and 5 deletions

View File

@ -149,13 +149,17 @@
</div>
<script>getSimilarVideos('{{ video.youtube_id }}')</script>
</div>
{% if video.comment_count %}
<div class="comments-section">
<h3>Comments: {{video.comment_count}}</h3>
<div id="comments-list" class="comments-list">
</div>
{% if video.comment_count == 0 %}
<div class="comments-section">
<span>Video has no comments</span>
</div>
{% elif video.comment_count %}
<div class="comments-section">
<h3>Comments: {{video.comment_count}}</h3>
<div id="comments-list" class="comments-list">
</div>
<script>getComments('{{ video.youtube_id }}')</script>
</div>
{% endif %}
</div>
<script>