Different call to count()

This commit is contained in:
James Cole 2020-09-21 15:45:51 +02:00
parent 2a5841c631
commit 5161971373
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -5,14 +5,7 @@
{% endblock %}
{% block content %}
{{ dump(accounts.count) }}
{{ dump(accounts.count()) }}
{{ dump(accounts.getCollection.count()) }}
{{ dump(accounts.getCollection().count()) }}
{{ dump(accounts) }}
{% if accounts.count > 0 %}
{% if accounts.count() > 0 %}
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="box" id="account-index-{{ objectType }}">
@ -72,7 +65,7 @@
</div>
</div>
{% endif %}
{% if accounts.count == 0 and page == 1 %}
{% if accounts.count() == 0 and page == 1 %}
{% include 'partials.empty' with {objectType: objectType, type: 'accounts',route: route('accounts.create', [objectType])} %}
{% endif %}
{% endblock %}