1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-21 22:47:43 +00:00
Files
matomo/plugins/DevicesDetection/templates/_profileSummary.twig
2017-10-13 11:52:47 +02:00

21 خطوط
1.1 KiB
Twig

{% if visitorData.devices is defined %}
<div class="visitor-profile-summary visitor-profile-devices">
<h1>{{ 'DevicesDetection_Devices'|translate }}</h1>
<div>
{%- for entry in visitorData.devices -%}
<p>
<img height="16" src="{{ entry.icon }}" />
{% if entry.devices|length == 1 and 'General_Unknown'|translate in entry.devices[0].name %}
<span>{{ 'DevicesDetection_XVisitsFromDevices'|translate('<strong>' ~ entry.count ~ '</strong>', '<strong>' ~ entry.type ~ '</strong>')|raw }}
{% else %}
<span>{{ 'DevicesDetection_XVisitsFromDevices'|translate('<strong>' ~ entry.count ~ '</strong>', '<strong>' ~ entry.type ~ '</strong>')|raw }}:
{% for device in entry.devices -%}
{{ device.name }} ({{ device.count }}x){% if not loop.last %}, {% endif %}
{%- endfor -%}
</span>
{% endif %}
</p>
{%- endfor -%}
</div>
</div>
{% endif %}