[themotte/rDrama#451] Show the number of descendants on the "More comments" button
This commit is contained in:
parent
2e29b468ec
commit
434542b586
1 changed files with 2 additions and 2 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue