diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2019-02-18 14:16:34 +0300 |
---|---|---|
committer | Stefan Giehl <stefan@matomo.org> | 2019-02-18 14:16:34 +0300 |
commit | 99d42f5b8ca81f5481635c0cbea794d4b7de783b (patch) | |
tree | 0daccf5d999bf093e6b2baebcf8b3b1c5565f4bf /plugins/Live/templates | |
parent | 7cf47ffa7577bb4a4c33266cd1b6c0be53e07236 (diff) |
Add spans to realtime visitor log tooltips. (#14050)
* Add spans to visitor log tooltips.
* Extra newline for tooltip.
Diffstat (limited to 'plugins/Live/templates')
-rw-r--r-- | plugins/Live/templates/getLastVisitsStart.twig | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/Live/templates/getLastVisitsStart.twig b/plugins/Live/templates/getLastVisitsStart.twig index c4bc6363a6..adf24ce9c3 100644 --- a/plugins/Live/templates/getLastVisitsStart.twig +++ b/plugins/Live/templates/getLastVisitsStart.twig @@ -75,12 +75,14 @@ {% if action.type == 'action' %} {# white spacing matters as Chrome tooltip display whitespaces #} {% set title %} -{% if action.pageTitle is not empty %}{{ action.pageTitle }}{% endif %} +{% if action.url|trim is not empty %}<span class='tooltip-action-url'>{{ action.url }}</span>{% endif %} -{{ action.serverTimePretty }} -{% if action.timeSpentPretty is defined %}{{ 'General_TimeOnPage'|translate }}: {{ action.timeSpentPretty|raw }}{% endif %} +{% if action.pageTitle is not empty %}<span class='tooltip-action-page-title'>{{ action.pageTitle }}</span>{% endif %} + +<span class="tooltip-action-server-time">{{ action.serverTimePretty }}</span> + {% if action.timeSpentPretty is defined %}<span class='tooltip-time-on-page'>{{ 'General_TimeOnPage'|translate }}: {{ action.timeSpentPretty|raw }}</span>{% endif %} {%- endset %} - <img class='iconPadding' src="{{ action.icon }}" title="{% if action.url|trim is not empty %}{{ action.url|e('html_attr') }}<br/>{% endif %}{{- title -}}"/> + <img class='iconPadding' src="{{ action.icon }}" title="{{- title|e('html_attr') -}}"/> {% elseif action.type == 'outlink' or action.type == 'download' %} <img class='iconPadding' src="{{ action.icon }}" title="{% if action.url is defined %}{{ action.url }} - {% endif %}{{ action.serverTimePretty }}"/> |