{% 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 record – the record type counted (project, dataset, sample, measurement): its colour on the icon tile, while the figure stays in the text colour variant – colours the figure and its icon with a theme colour, for a figure that is not a record type. Without either 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 %}