diff options
Diffstat (limited to 'plugins/CoreVisualizations/templates/_dataTableViz_sparklines.twig')
-rw-r--r-- | plugins/CoreVisualizations/templates/_dataTableViz_sparklines.twig | 61 |
1 files changed, 34 insertions, 27 deletions
diff --git a/plugins/CoreVisualizations/templates/_dataTableViz_sparklines.twig b/plugins/CoreVisualizations/templates/_dataTableViz_sparklines.twig index 38a0b9d97e..4ed2dbc655 100644 --- a/plugins/CoreVisualizations/templates/_dataTableViz_sparklines.twig +++ b/plugins/CoreVisualizations/templates/_dataTableViz_sparklines.twig @@ -1,34 +1,41 @@ {% import '@CoreVisualizations/macros.twig' as macros %} {% if not isWidget %} -<div class="row"> - <div class="col-md-6"> + <div class="card"><div class="card-content"> {% endif %} - - {% for key, sparkline in sparklines %} - {% if key is even %} - {{ macros.singleSparkline(sparkline) }} - {% endif %} - {% endfor %} - -{% if not isWidget %} - <br style="clear:left"/> + {% if title is not empty %}<h2 class="card-title">{{ title }}</h2>{% endif %} + + {% if not isWidget %} + <div class="row"> + <div class="col m6"> + {% endif %} + + {% for key, sparkline in sparklines %} + {% if key is even %} + {{ macros.singleSparkline(sparkline) }} + {% endif %} + {% endfor %} + + {% if not isWidget %} + <br style="clear:left"/> + </div> + <div class="col m6"> + {% endif %} + + {% for key, sparkline in sparklines %} + {% if key is odd %} + {{ macros.singleSparkline(sparkline) }} + {% endif %} + {% endfor %} + + <br style="clear:left"/> + + {% if not isWidget %} + </div> </div> - <div class="col-md-6"> -{% endif %} - - {% for key, sparkline in sparklines %} - {% if key is odd %} - {{ macros.singleSparkline(sparkline) }} - {% endif %} - {% endfor %} - - <br style="clear:left"/> + {% endif %} + {% include "_sparklineFooter.twig" %} {% if not isWidget %} - </div> -</div> -{% endif %} - -{% include "_sparklineFooter.twig" %} - + </div></div> +{% endif %}
\ No newline at end of file |