{% comment %} — one daisyUI `stat` inside . Attributes: title – what is being counted, above the figure value – the figure desc – one qualifying line under the figure (or the `desc` slot) href – makes the title a link to where the figure comes from variant – colours the figure and its icon: the record type's colour (success, secondary, accent, …). Without one both stay neutral. icon – an icon for what is counted, drawn in a tinted tile at the end of the stat class – extra classes on the root Slots: figure – optional trailing element (daisyUI `stat-figure`) Candidate for django-mvp. {% endcomment %}
{% if figure %}
{{ figure }}
{% elif icon %}
{% endif %}
{% if href %}{{ title }}{% else %}{{ title }}{% endif %}
{{ value }}
{% if desc %}
{{ desc }}
{% endif %}