Show load more only if needed

This commit is contained in:
Flavio Copes 2015-10-08 17:33:43 +02:00
parent 1c1f6f6d16
commit 24f710828e
1 changed files with 5 additions and 3 deletions

View File

@ -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>