diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-04-22 07:10:31 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-04-22 07:10:31 +0300 |
commit | 779b48bd34734ddb30d825d55c117682447491f3 (patch) | |
tree | 74a3e1eeeb4190739b97735f00b47a62625d6955 | |
parent | b8a7d60b048c09bce81596357ffd44fbc5fc8bb7 (diff) |
Fixes #7738 visual regression in the visits frequency
-rw-r--r-- | plugins/VisitFrequency/templates/_sparklines.twig | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/VisitFrequency/templates/_sparklines.twig b/plugins/VisitFrequency/templates/_sparklines.twig index e5639e2e36..c6c123c5e2 100644 --- a/plugins/VisitFrequency/templates/_sparklines.twig +++ b/plugins/VisitFrequency/templates/_sparklines.twig @@ -1,6 +1,9 @@ -<div class="row"> +{% if not isWidget %} +<div class="row"> <div class="col-md-6"> +{% endif %} + <div class="sparkline"> {{ sparkline(urlSparklineNbVisitsReturning) }} {{ 'VisitFrequency_ReturnVisits'|translate("<strong>"~nbVisitsReturning~"</strong>")|raw }} @@ -13,8 +16,12 @@ {{ sparkline(urlSparklineActionsPerVisitReturning) }} {{ 'VisitFrequency_ReturnAvgActions'|translate("<strong>"~nbActionsPerVisitReturning~"</strong>")|raw }} </div> + + {% if not isWidget %} </div> <div class="col-md-6"> + {% endif %} + <div class="sparkline"> {{ sparkline(urlSparklineAvgVisitDurationReturning) }} {% set avgVisitDurationReturning=avgVisitDurationReturning|sumtime %} @@ -25,5 +32,8 @@ {{ 'VisitFrequency_ReturnBounceRate'|translate("<strong>"~bounceRateReturning~"</strong>")|raw }} </div> {% include "_sparklineFooter.twig" %} + +{% if not isWidget %} </div> </div> +{% endif %} |