blob: eb09ee8730f6388747db8e30d40160ee57f42ef6 (
plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{% set displayVisitorsInOwnColumn = (isWidget ? false : true) %}
{% set cycleIndex=0 %}
{% for visitor in dataTable.getRows() %}
{% set visitorRow %}
<div class="card row hoverable">
{% if visitor.getColumn('visitorId') is not empty and not clientSideParameters.hideProfileLink %}
<a class="visitor-log-visitor-profile-link visitorLogTooltip" title="{{ 'Live_ViewVisitorProfile'|translate }}" data-visitor-id="{{ visitor.getColumn("visitorId") }}">
<img src="plugins/Live/images/visitorProfileLaunch.png"/> <span>{{ 'Live_ViewVisitorProfile'|translate }}
{%- if visitor.getColumn('userId') is not empty %}: {{ visitor.getColumn('userId')|raw }}{% endif %}</span>
</a>
{% endif %}
{% set cycleIndex=cycleIndex+1 %}
<div class="col s12 m{% if displayVisitorsInOwnColumn %}3{% else %}4{% endif %}">
{{ postEvent('Live.renderVisitorDetails', visitor) }}
</div>
{% if displayVisitorsInOwnColumn %}
<div class="col s12 m2 own-visitor-column">
{{ postEvent('Live.renderVisitorIcons', visitor) }}
</div>
{% endif %}
<div class="col s12 m{% if displayVisitorsInOwnColumn %}7{% else %}8{% endif %} column {% if visitor.getColumn('visitConverted') and not isWidget %}highlightField{% endif %}">
{{ postEvent('Live.visitorLogViewBeforeActionsInfo', visitor) }}
<strong>
{% set actionCount = visitor.getColumn('actionDetails')|length %}
{% if visitor.truncatedActionsCount is defined %}
{% set actionCount = actionCount + visitor.truncatedActionsCount %}
{% endif %}
{{ actionCount }}
{% if actionCount <= 1 %}
{{ 'General_Action'|translate }}
{% else %}
{{ 'General_Actions'|translate }}
{% endif %}
{% if visitor.getColumn('visitDuration') > 0 %}- {{ visitor.getColumn('visitDurationPretty')|raw }}{% endif %}
</strong>
<div class="visitor-log-page-list">
<ol class='visitorLog'>
{% include "@Live/_actionsList.twig" with {'actionDetails': visitor.getColumn('actionDetails'), 'visitInfo': visitor} %}
</ol>
</div>
{{ postEvent('Live.visitorLogViewAfterActionsInfo', visitor) }}
</div>
</div>
{% endset %}
{{ visitorRow }}
{% endfor %}
|