{#- The panel's home (renox-admin/dashboard.html): how many records each
resource the user may see has, each a link to its list. -#}
{% extends "renox-admin/layout.html" %}
{% from "renox/ui.html" import page_header, stats, stat, empty %}
{% block content %}
{% call page_header(admin.text.dashboard) %}{% endcall %}
{%- if cards %}
{% call stats(4) %}
{%- for card in cards %}
{{ stat(card.label, card.count | number, url=card.url) }}
{%- endfor %}
{% endcall %}
{%- else %}
{{ empty(admin.text.nothing_yet, admin.text.no_resources) }}
{%- endif %}
{% endblock %}