diff options
author | Stefan Giehl <stefan@piwik.org> | 2018-04-23 07:20:37 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2018-04-23 07:20:37 +0300 |
commit | 14ba6a44029e29a9336efdd482875df641bd2a82 (patch) | |
tree | 12e97f7af52a0cde48142674c3b79dcb1b628c4f /plugins/Live/templates | |
parent | eff059cd5825fc8967673cb0a2f96ed7564f3c65 (diff) |
Show information in visitor profile if dataset was "truncated" (#12376)
* Show overall visit count in visitor profile if there have been more visits than shown in the summary
* update/ add tests
Diffstat (limited to 'plugins/Live/templates')
-rw-r--r-- | plugins/Live/templates/_profileSummary.twig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Live/templates/_profileSummary.twig b/plugins/Live/templates/_profileSummary.twig index 21c01ad9e8..27a771100d 100644 --- a/plugins/Live/templates/_profileSummary.twig +++ b/plugins/Live/templates/_profileSummary.twig @@ -5,6 +5,9 @@ <div class="visitor-profile-summary visitor-profile-resume"> <h1>{{ 'General_Summary'|translate }}</h1> <div> + {% if visitorData.totalVisitCount > visitorData.totalVisits %} + <p>{{ 'Live_LimitedSummary'|translate('<strong>' ~ visitorData.totalVisits ~ '</strong>', '<strong>' ~ visitorData.totalVisitCount ~ '</strong>')|raw }}</p> + {% endif %} {% if visitorData.totalPageViews != visitorData.totalActions %} {% set actionDetails = [] %} {% if visitorData.totalPageViews > 0 %}{% set actionDetails = actionDetails|merge(['<span title="' ~ pageviewDetails ~ '">' ~ visitorData.totalPageViews ~ ' ' ~ 'General_ColumnPageviews'|translate ~ '</span>']) %}{% endif %} |