Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@piwik.org>2018-06-12 05:39:24 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2018-06-12 05:39:24 +0300
commita4e5979b3d623bb855071f2030a4ea1011c99df9 (patch)
tree9c5900c6de2321144a48dd0109d3861191599c98 /plugins/Live/templates
parent061e9364f69ad30cbbe1ef63eb9337e9e1d2434b (diff)
Show info message in visitor profile if there had been more visits than shown in the summary (#12863)
* Show info message in visitor profile if there have been more visits than shown in the summary * show limited profile message in visit list as well * fix tests
Diffstat (limited to 'plugins/Live/templates')
-rw-r--r--plugins/Live/templates/_profileSummary.twig3
-rw-r--r--plugins/Live/templates/getVisitorProfilePopup.twig8
2 files changed, 10 insertions, 1 deletions
diff --git a/plugins/Live/templates/_profileSummary.twig b/plugins/Live/templates/_profileSummary.twig
index 12924fea6b..58c551832e 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.hasMoreVisits %}
+ <p>{{ 'Live_LimitedSummary'|translate('<strong>' ~ visitorData.totalVisits ~ '</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 %}
diff --git a/plugins/Live/templates/getVisitorProfilePopup.twig b/plugins/Live/templates/getVisitorProfilePopup.twig
index 0ba189c3ac..96c95fc2f8 100644
--- a/plugins/Live/templates/getVisitorProfilePopup.twig
+++ b/plugins/Live/templates/getVisitorProfilePopup.twig
@@ -74,7 +74,13 @@
style="display:none;"
src="plugins/Morpheus/images/loading-blue.gif"/>
{% else %}
- <span class="visitor-profile-no-visits">{{ 'Live_NoMoreVisits'|translate }}</span>
+ <span class="visitor-profile-no-visits">
+ {% if visitorData.hasMoreVisits %}
+ {{ 'Live_LimitedVisitsShown'|translate('<strong>' ~ visitorData.totalVisits ~ '</strong>')|raw }}
+ {% else %}
+ {{ 'Live_NoMoreVisits'|translate }}
+ {% endif %}
+ </span>
{% endif %}
</div>
</div>