-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
_dataTableCloud.twig
34 lines (34 loc) · 1.78 KB
/
_dataTableCloud.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<div class="dataTable" data-report="{{ properties.uniqueId }}" data-params="{{ javascriptVariablesToSet|json_encode }}">
{% if reportDocumentation is not empty and javascriptVariablesToSet.viewDataTable != 'tableGoals' %}
<div class="reportDocumentation"><p>{{ reportDocumentation|raw }}</p></div>
{% endif %}
<div class="tagCloud">
{% if cloudValues|length == 0 %}
{% if showReportDataWasPurgedMessage %}
<div class="pk-emptyDataTable">{{ 'General_DataForThisTagCloudHasBeenPurged'|translate(deleteReportsOlderThan) }}</div>
{% else %}
<div class="pk-emptyDataTable">{{ 'General_NoDataForTagCloud'|translate }}</div>
{% endif %}
{% else %}
{% for word,value in cloudValues %}
<span title="{{ value.word }} ({{ value.value }} {{ columnTranslation }})" class="word size{{ value.size }}
{# we strike tags with 0 hits #}
{% if value.value == 0 %}valueIsZero{% endif %}">
{% if labelMetadata[value.word].url is not sameas(false) %}
<a href="{{ labelMetadata[value.word].url }}" target="_blank">
{% endif %}
{% if labelMetadata[value.word].logo is not sameas(false) %}
<img src="{{ labelMetadata[value.word].logo }}" width="{{ value.logoWidth }}" />
{% else %}
{{ value.wordTruncated }}
{% endif %}
{% if labelMetadata[value.word].url is not sameas(false) %}</a>{% endif %}
</span>
{% endfor %}
{% endif %}
</div>
{% if properties.show_footer %}
{% include "@CoreHome/_dataTableFooter.twig" %}
{% endif %}
{% include "@CoreHome/_dataTableJS.twig" %}
</div>