diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-23 04:08:13 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-04-17 04:41:00 +0300 |
commit | a8e1c998f0b6e7876904266b68189e1fecdfe329 (patch) | |
tree | 9d8e511d8533e82af59b4168a0c7980d70278fa1 /plugins/VisitorInterest | |
parent | 4e29a640997fa53170b57bcb5b43c3ea8cb7affe (diff) |
Refactor 2 columns layouts to use Bootstrap CSS classes
That allows to use standard Bootstrap classes instead of custom Piwik ids + those layouts are now responsive and work on mobiles
Diffstat (limited to 'plugins/VisitorInterest')
-rw-r--r-- | plugins/VisitorInterest/templates/index.twig | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/plugins/VisitorInterest/templates/index.twig b/plugins/VisitorInterest/templates/index.twig index af98d8f1ff..332289e106 100644 --- a/plugins/VisitorInterest/templates/index.twig +++ b/plugins/VisitorInterest/templates/index.twig @@ -1,20 +1,21 @@ -<br /> -<div id="leftcolumn"> - <h2 piwik-enriched-headline>{{ 'VisitorInterest_VisitsPerDuration'|translate }}</h2> - {{ dataTableNumberOfVisitsPerVisitDuration|raw }} +<div class="row"> + <div class="col-md-6"> + <h2 piwik-enriched-headline>{{ 'VisitorInterest_VisitsPerDuration'|translate }}</h2> + {{ dataTableNumberOfVisitsPerVisitDuration|raw }} + </div> + <div class="col-md-6"> + <h2 piwik-enriched-headline>{{ 'VisitorInterest_VisitsPerNbOfPages'|translate }}</h2> + {{ dataTableNumberOfVisitsPerPage|raw }} + </div> </div> -<div id="rightcolumn"> - <h2 piwik-enriched-headline>{{ 'VisitorInterest_VisitsPerNbOfPages'|translate }}</h2> - {{ dataTableNumberOfVisitsPerPage|raw }} + +<div class="row"> + <div class="col-md-6"> + <h2 piwik-enriched-headline>{{ 'VisitorInterest_visitsByVisitCount'|translate }}</h2> + {{ dataTableNumberOfVisitsByVisitNum|raw }} + </div> + <div class="col-md-6"> + <h2 piwik-enriched-headline>{{ 'VisitorInterest_VisitsByDaysSinceLast'|translate }}</h2> + {{ dataTableNumberOfVisitsByDaysSinceLast|raw }} + </div> </div> -<div style="clear:both"></div> -<br /> -<div id="leftcolumn"> - <h2 piwik-enriched-headline>{{ 'VisitorInterest_visitsByVisitCount'|translate }}</h2> - {{ dataTableNumberOfVisitsByVisitNum|raw }} -</div> -<div id="rightcolumn"> - <h2 piwik-enriched-headline>{{ 'VisitorInterest_VisitsByDaysSinceLast'|translate }}</h2> - {{ dataTableNumberOfVisitsByDaysSinceLast|raw }} -</div> -<div style="clear:both"></div>
\ No newline at end of file |