questlab/www/analytics/plugins/Annotations/templates/getAnnotationManager.twig
coderkun 046a724272 merge
2015-04-27 16:42:05 +02:00

27 lines
1.1 KiB
Twig
Executable file

<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/_annotationList.twig" %}
<span class="loadingPiwik" style="display:none;"><img src="plugins/Zeitgeist/images/loading-blue.gif"/>{{ 'General_Loading'|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>