Show load more only if needed
This commit is contained in:
parent
1c1f6f6d16
commit
24f710828e
|
@ -96,9 +96,11 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<button type="button" class="button center js__load-more">
|
{% if grav.twig.comments.totalRetrieved < grav.twig.comments.totalAvailable %}
|
||||||
Load more
|
<button type="button" class="button center js__load-more">
|
||||||
</button>
|
Load more
|
||||||
|
</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