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