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:
Diffstat (limited to 'plugins/Annotations/templates/annotationManager.twig')
-rwxr-xr-xplugins/Annotations/templates/annotationManager.twig27
1 files changed, 27 insertions, 0 deletions
diff --git a/plugins/Annotations/templates/annotationManager.twig b/plugins/Annotations/templates/annotationManager.twig
new file mode 100755
index 0000000000..6d79f1ac08
--- /dev/null
+++ b/plugins/Annotations/templates/annotationManager.twig
@@ -0,0 +1,27 @@
+<div class="annotation-manager"
+ {% if startDate != endDate %}data-date="{{ startDate }},{{ endDate }}" data-period="range"
+ {% else %}data-date="{{ startDate }}" data-period="{{ period }}"
+ {% endif %}>
+
+ <div class="annotations-header">
+ <span>{{ 'Annotations_Annotations'|translate }}</span>
+ </div>
+
+ <div class="annotation-list-range">{{ startDatePretty }}{% if startDate != endDate %} &mdash; {{ endDatePretty }}{% endif %}</div>
+
+ <div class="annotation-list">
+ {% include "@Annotations/annotations.twig" %}
+
+ <span class="loadingPiwik" style="display:none"><img src="plugins/Zeitgeist/theme/images/loading-blue.gif"/>{{ 'General_Loading_js'|translate }}</span>
+
+ </div>
+
+ <div class="annotation-controls">
+ {% if canUserAddNotes %}
+ <a href="#" class="add-annotation" title="{{ 'Annotations_CreateNewAnnotation'|translate }}">{{ 'Annotations_CreateNewAnnotation'|translate }}</a>
+ {% elseif userLogin == 'anonymous' %}
+ <a href="index.php?module=Login">{{ 'Annotations_LoginToAnnotate'|translate }}</a>
+ {% endif %}
+ </div>
+
+</div>