diff options
author | Stefan Giehl <stefan@piwik.org> | 2018-05-03 22:47:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-03 22:47:10 +0300 |
commit | c58689c672d4f10d62664ec38351549f0e5e80e3 (patch) | |
tree | 211dd83637c6f020f3ed5cb5c7ac0e99a94247be /plugins/Live/templates | |
parent | 94ba5d292a0bde8a3b2056e698cfcb3e9ea7c1af (diff) |
Show city / country in visitor details (#12534)
* Show city or country in visitor details
* update UI files
* Show country flag and location only if not unknown
* hide flag icon in icon list
* update UI files
Diffstat (limited to 'plugins/Live/templates')
-rw-r--r-- | plugins/Live/templates/_visitorDetails.twig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Live/templates/_visitorDetails.twig b/plugins/Live/templates/_visitorDetails.twig index 63edc4fd80..373342098a 100644 --- a/plugins/Live/templates/_visitorDetails.twig +++ b/plugins/Live/templates/_visitorDetails.twig @@ -9,6 +9,10 @@ {% endif %}{% if visitInfo.getColumn('latitude') or visitInfo.getColumn('longitude') %}{{ visitInfo.getColumn('location') }} GPS (lat/long): {{ visitInfo.getColumn('latitude') }},{{ visitInfo.getColumn('longitude') }}{% endif %}"> IP: {{ visitInfo.getColumn('visitIp') }} + <br /> + {% if visitInfo.getColumn('location') != 'General_Unknown'|translate %}<span><img width="16" class="flag" src="{{ visitInfo.getColumn('countryFlag') }}"/> + {% if visitInfo.getColumn('city') is not empty %}{{ visitInfo.getColumn('city') }}{% else %}{{ visitInfo.getColumn('country') }}{% endif %}</span>{% endif %} + {% if visitInfo.getColumn('userId') is not empty %}<br/><br/>{{ visitInfo.getColumn('userId')|raw }}{% endif %} </span>{% endif %} {% if isWidget %} |