mirror of
https://github.com/tabler/tabler.git
synced 2026-07-23 19:50:59 +04:00
19 lines
525 B
HTML
19 lines
525 B
HTML
{% assign chart-id = include.chart %}
|
|
{% assign data = site.data.charts[chart-id] %}
|
|
|
|
{% if data or include.heatmap %}
|
|
<div class="card">
|
|
{% if include.title %}
|
|
<div class="card-header">
|
|
<h3 class="card-title">{{ include.title }}</h3>
|
|
</div>
|
|
{% endif %}
|
|
<div class="card-body">
|
|
{% if include.heatmap %}
|
|
{% include ui/chart-heatmap.html chart-id=chart-id show-scripts=true size="lg" %}
|
|
{% else %}
|
|
{% include ui/chart.html chart-id=chart-id show-scripts=true size="lg" %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %} |