[themotte/rDrama#451] Show the number of descendants on the "More comments" button

This commit is contained in:
faul_sname 2023-01-06 18:27:23 -08:00
parent 2e29b468ec
commit 434542b586

View file

@ -104,7 +104,7 @@
</div> </div>
{% elif replies %} {% elif replies %}
<div id="morecomment-{{c.id}}" class="mt-2 more-comments"> <div id="morecomment-{{c.id}}" class="mt-2 more-comments">
<button id="btn-{{c.id}}" class="d-none d-md-block btn btn-primary" onclick="morecomments('{{c.id}}')">More comments</button> <button id="btn-{{c.id}}" class="d-none d-md-block btn btn-primary" onclick="morecomments('{{c.id}}')">More comments ({{c.descendant_count}})</button>
<a class="d-md-none" href="{{c.morecomments}}">More comments <i class="fas fa-long-arrow-right ml-1"></i></a> <a class="d-md-none" href="{{c.morecomments}}">More comments <i class="fas fa-long-arrow-right ml-1"></i></a>
</div> </div>
{% endif %} {% endif %}
@ -572,7 +572,7 @@
</div> </div>
{% elif replies %} {% elif replies %}
<div id="morecomments-{{c.id}}" class="mt-2 more-comments"> <div id="morecomments-{{c.id}}" class="mt-2 more-comments">
<button id="btn-{{c.id}}" class="d-none d-md-block btn btn-primary" onclick="morecomments('{{c.id}}')">More comments</button> <button id="btn-{{c.id}}" class="d-none d-md-block btn btn-primary" onclick="morecomments('{{c.id}}')">More comments ({{c.descendant_count}})</button>
<a class="d-md-none" href="{{c.morecomments}}">More comments <i class="fas fa-long-arrow-right ml-1"></i></a> <a class="d-md-none" href="{{c.morecomments}}">More comments <i class="fas fa-long-arrow-right ml-1"></i></a>
</div> </div>
{% endif %} {% endif %}