Show load more only if needed
This commit is contained in:
parent
1c1f6f6d16
commit
24f710828e
|
@ -96,9 +96,11 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
{% if grav.twig.comments.totalRetrieved < grav.twig.comments.totalAvailable %}
|
||||||
<button type="button" class="button center js__load-more">
|
<button type="button" class="button center js__load-more">
|
||||||
Load more
|
Load more
|
||||||
</button>
|
</button>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<p class="center">Showing <span class="totalRetrieved">{{grav.twig.comments.totalRetrieved}}</span> comments of <span class="totalAvailable">{{grav.twig.comments.totalAvailable}}</span></p>
|
<p class="center">Showing <span class="totalRetrieved">{{grav.twig.comments.totalRetrieved}}</span> comments of <span class="totalAvailable">{{grav.twig.comments.totalAvailable}}</span></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue