{% if sparkline.title|default is not empty %}
{{ sparkline.title }}
{% endif %}
{% if sparkline.url %}{{ sparkline(sparkline.url)|raw }}{% endif %}
{% for groupName, group in sparkline.metrics %}
{% if groupName is not empty %}{{ groupName }}{% endif %}
{% for metric in group %}
{% if '%s' in metric.description -%}
{{ metric.description|translate(""~metric.value|number(2)~"")|raw }}
{%- else %}
{{ metric.value|number(2) }} {{ metric.description }}
{%- endif %}{% if not loop.last %}, {% endif %}
{% if metric.evolution is defined %}
{{ _self.sparklineEvolution(metric.evolution) }}
{% endif %}
{% endfor %}
{% endfor %}
{% if sparkline.evolution is defined %}
{{ _self.sparklineEvolution(sparkline.evolution) }}
{% endif %}
{% endmacro %}