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-06 16:12:28 +0400
committerFabian Becker <halfdan@xnorfz.de>2013-04-06 16:12:28 +0400
commitd381d9821a9639339dda3080e111b5dbe4d96d65 (patch)
tree281979c6e9562209f1a9bbf141128b77f62c2a19 /plugins/Annotations/templates
parent1fe5921df39eac77615d9b14b801aab69c3408a4 (diff)
Converted parts of Installation
Added new function to Twig.php Converted genericForm
Diffstat (limited to 'plugins/Annotations/templates')
-rwxr-xr-xplugins/Annotations/templates/annotations.twig (renamed from plugins/Annotations/templates/annotations.tpl)24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/Annotations/templates/annotations.tpl b/plugins/Annotations/templates/annotations.twig
index 26c1f708f1..72f5c93ca5 100755
--- a/plugins/Annotations/templates/annotations.tpl
+++ b/plugins/Annotations/templates/annotations.twig
@@ -1,28 +1,28 @@
<div class="annotations">
- {if empty($annotations)}
- <div class="empty-annotation-list">{'Annotations_NoAnnotations'|translate}</div>
- {/if}
+ {% if annotations is empty %}
+ <div class="empty-annotation-list">{{ 'Annotations_NoAnnotations'|translate }}</div>
+ {% endif %}
<table>
- {foreach from=$annotations item=annotation}
- {include file="Annotations/templates/annotation.tpl"}
- {/foreach}
- <tr class="new-annotation-row" style="display:none" data-date="{$startDate}">
+ {% 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>
+ <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}"/>
+ <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>
+ <td class="annotation-user-cell"><span class="annotation-user">{{ userLogin }}</span></td>
</tr>
</table>