Don't duplicate view more button code
This commit is contained in:
parent
54fdfd1559
commit
b32d32a658
1 changed files with 1 additions and 9 deletions
|
@ -170,15 +170,7 @@
|
||||||
{{single_comment(comment, level = parent_level + 1)}}
|
{{single_comment(comment, level = parent_level + 1)}}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if offset %} {# view more button #}
|
{%- include 'component/comment/view_more_button.html' -%}
|
||||||
{% if p %}
|
|
||||||
{% set pid = p.id %}
|
|
||||||
{% endif %}
|
|
||||||
<div id="viewmore-{{offset}}">
|
|
||||||
<br>
|
|
||||||
<button id="viewbtn" class="btn btn-primary" onclick="viewmore({{pid}},'{{sort}}',{{offset}},{{ids}})">VIEW MORE COMMENTS</button>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if not ajax %}
|
{% if not ajax %}
|
||||||
{% if v %}
|
{% if v %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue