1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-21 22:47:43 +00:00
Files
matomo/plugins/Annotations/templates/_annotationList.twig
Stefan Giehl 330596ddf0 Disables auto sanitizing for Annotation API (#22552)
* Improve type hinting for Annotation API and limit message to 255 chars

* shorten message to 255 chars

* adjust tests

* updates expected UI test file

* cs
2024-09-06 12:04:59 +02:00

37 خطوط
1.4 KiB
Twig

<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="{{ selectedDate }}">
<td class="annotation-meta">
<div class="annotation-star">&nbsp;</div>
<div class="annotation-period-edit">
<a href="#">{{ selectedDate }}</a>
<div class="datepicker" style="display:none;"/>
</div>
</td>
<td class="annotation-user-cell"><span class="annotation-user">{{ userLogin }}</span></td>
<td class="annotation-value">
<div class="input-field">
<input type="text" value="" maxlength="255"
class="new-annotation-edit"
placeholder="{{ 'Annotations_EnterAnnotationText'|translate }}"/>
</div><br/>
<input type="button" class="btn new-annotation-save" value="{{ 'General_Save'|translate }}"/>
<input type="button" class="btn new-annotation-cancel" value="{{ 'General_Cancel'|translate }}"/>
</td>
</tr>
</table>
</div>