Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Becker <halfdan@xnorfz.de>2013-04-05 22:38:07 +0400
committerFabian Becker <halfdan@xnorfz.de>2013-04-05 22:38:07 +0400
commit488442cfdf9f119d9169771a887e8f18489a83f1 (patch)
tree0750f40d67903b6f0576e4b478eee62d87823b38 /plugins/Annotations/templates
parent862c6bcac0b828b1041211b6a204f426cc8a35b4 (diff)
Partial conversion of Annotations plugin
Diffstat (limited to 'plugins/Annotations/templates')
-rwxr-xr-xplugins/Annotations/templates/evolutionAnnotations.tpl15
-rwxr-xr-xplugins/Annotations/templates/evolutionAnnotations.twig15
2 files changed, 15 insertions, 15 deletions
diff --git a/plugins/Annotations/templates/evolutionAnnotations.tpl b/plugins/Annotations/templates/evolutionAnnotations.tpl
deleted file mode 100755
index eaf6f9d9d3..0000000000
--- a/plugins/Annotations/templates/evolutionAnnotations.tpl
+++ /dev/null
@@ -1,15 +0,0 @@
-<div class="evolution-annotations">
- {foreach from=$annotationCounts item=dateCountPair}
- {assign var=date value=$dateCountPair[0]}
- {assign var=counts value=$dateCountPair[1]}
- <span data-date="{$date}" data-count="{$counts.count}" data-starred="{$counts.starred}"
- {if $counts.count eq 0}title="{'Annotations_AddAnnotationsFor_js'|translate:$date}"
- {elseif $counts.count eq 1}title="{'Annotations_AnnotationOnDate'|translate:$date:$counts.note}
-
-{'Annotations_ClickToEditOrAdd'|translate}"
- {else}title="{'Annotations_ViewAndAddAnnotations_js'|translate:$date}"
- {/if}>
- <img src="themes/default/images/{if $counts.starred > 0}yellow_marker.png{else}grey_marker.png{/if}" width="16" height="16"/>
- </span>
- {/foreach}
-</div>
diff --git a/plugins/Annotations/templates/evolutionAnnotations.twig b/plugins/Annotations/templates/evolutionAnnotations.twig
new file mode 100755
index 0000000000..c168ac9a31
--- /dev/null
+++ b/plugins/Annotations/templates/evolutionAnnotations.twig
@@ -0,0 +1,15 @@
+<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_js'|translate(date) }}"
+ {% elseif counts.count == 1 %}title="{{ 'Annotations_AnnotationOnDate'|translate(date,counts.note) }}
+
+{{ 'Annotations_ClickToEditOrAdd'|translate }}"
+ {% else %}}title="{{ 'Annotations_ViewAndAddAnnotations_js'|translate(date) }}"
+ {% endif %}>
+ <img src="plugins/Zeitgeist/theme/images/{% if counts.starred > 0 %}yellow_marker.png{% else %}}grey_marker.png{% endif %}}" width="16" height="16"/>
+ </span>
+ {% endfor %}
+</div>