This commit is contained in:
coderkun 2015-04-27 16:42:05 +02:00
commit 046a724272
4209 changed files with 1186656 additions and 0 deletions

View file

@ -0,0 +1,45 @@
<tr class="annotation" data-id="{{ annotation.idNote }}" data-date="{{ annotation.date }}">
<td class="annotation-meta">
<div class="annotation-star{% if annotation.canEditOrDelete %} annotation-star-changeable{% endif %}" data-starred="{{ annotation.starred }}"
{% if annotation.canEditOrDelete %}title="{{ 'Annotations_ClickToStarOrUnstar'|translate }}"{% endif %}>
{% if annotation.starred %}
<img src="plugins/Zeitgeist/images/star.png"/>
{% else %}
<img src="plugins/Zeitgeist/images/star_empty.png"/>
{% endif %}
</div>
<div class="annotation-period {% if annotation.canEditOrDelete %}annotation-enter-edit-mode{% endif %}">({{ annotation.date }})</div>
{% if annotation.canEditOrDelete %}
<div class="annotation-period-edit" style="display:none;">
<a href="#">{{ annotation.date }}</a>
<div class="datepicker" style="display:none;"/>
</div>
{% endif %}
</td>
<td class="annotation-value">
<div class="annotation-view-mode">
<span {% if annotation.canEditOrDelete %}title="{{ 'Annotations_ClickToEdit'|translate }}"
class="annotation-enter-edit-mode"{% endif %}>{{ annotation.note|raw }}</span>
{% if annotation.canEditOrDelete %}
<a href="#" class="edit-annotation annotation-enter-edit-mode" title="{{ 'Annotations_ClickToEdit'|translate }}">{{ 'General_Edit'|translate }}...</a>
{% endif %}
</div>
{% if annotation.canEditOrDelete %}
<div class="annotation-edit-mode" style="display:none;">
<input class="annotation-edit" type="text" value="{{ annotation.note|raw }}"/>
<br/>
<input class="annotation-save submit" type="button" value="{{ 'General_Save'|translate }}"/>
<input class="annotation-cancel submit" type="button" value="{{ 'General_Cancel'|translate }}"/>
</div>
{% endif %}
</td>
{% if annotation.user is defined and userLogin != 'anonymous' %}
<td class="annotation-user-cell">
<span class="annotation-user">{{ annotation.user }}</span><br/>
{% if annotation.canEditOrDelete %}
<a href="#" class="delete-annotation" style="display:none;" title="{{ 'Annotations_ClickToDelete'|translate }}">{{ 'General_Delete'|translate }}</a>
{% endif %}
</td>
{% endif %}
</tr>

View file

@ -0,0 +1,29 @@
<div class="annotations">
{% if annotations is empty %}
<div class="empty-annotation-list">{{ 'Annotations_NoAnnotations'|translate }}</div>
{% endif %}
<table>
{% for annotation in annotations %}
{% include "@Annotations/_annotation.twig" %}
{% endfor %}
<tr class="new-annotation-row" style="display:none;" data-date="{{ startDate }}">
<td class="annotation-meta">
<div class="annotation-star">&nbsp;</div>
<div class="annotation-period-edit">
<a href="#">{{ startDate }}</a>
<div class="datepicker" style="display:none;"/>
</div>
</td>
<td class="annotation-value">
<input type="text" value="" class="new-annotation-edit" placeholder="{{ 'Annotations_EnterAnnotationText'|translate }}"/><br/>
<input type="button" class="submit new-annotation-save" value="{{ 'General_Save'|translate }}"/>
<input type="button" class="submit new-annotation-cancel" value="{{ 'General_Cancel'|translate }}"/>
</td>
<td class="annotation-user-cell"><span class="annotation-user">{{ userLogin }}</span></td>
</tr>
</table>
</div>

View file

@ -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/_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>

View file

@ -0,0 +1,14 @@
<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)|raw }}
{{ 'Annotations_ClickToEditOrAdd'|translate }}"
{% else %}}title="{{ 'Annotations_ViewAndAddAnnotations'|translate(date) }}"{% endif %}>
<img src="plugins/Zeitgeist/images/{% if counts.starred > 0 %}annotations_starred.png{% else %}annotations.png{% endif %}" width="16" height="16"/>
</span>
{% endfor %}
</div>

View file

@ -0,0 +1 @@
{% include "@Annotations/_annotation.twig" %}