1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-22 06:57:53 +00:00
Files
matomo/plugins/Annotations/templates/getEvolutionIcons.twig
2023-12-06 08:07:59 +01:00

15 خطوط
815 B
Twig

<div class="evolution-annotations">
{% for dateCountPair in annotationCounts %}
{% set date=dateCountPair[0] %}
{% set counts=dateCountPair[1] %}
<span data-date="{{ date }}" data-count="{{ counts.count }}" data-starred="{{ counts.starred }}"
{% if counts.count == 0 %}title="{{ 'Annotations_AddAnnotationsFor'|translate(date) }}"
{% elseif counts.count == 1 %}title="{{ 'Annotations_AnnotationOnDate'|translate(date,
(counts.note|e('html_attr')))|raw }}
{{ 'Annotations_ClickToEditOrAdd'|translate }}"
{% else %}title="{{ 'Annotations_ViewAndAddAnnotations'|translate(date) }}"{% endif %}>
<span class="icon-annotation {% if counts.starred > 0 %}starred{% endif %}"></span>
</span>
{% endfor %}
</div>