Files
skooner/_includes/range_allocation_table.html
2020-08-11 16:18:21 -05:00

20 lines
596 B
HTML

{% assign buckets = include.buckets | split: ' ' %}
{% assign ranges = include.ranges | split: ' ' %}
{% assign values = include.values | split: ' ' %}
<div class="ui-allocation-table">{% comment %}Without this extra div, jekyll {% endcomment %}
<table>
<tr>
{% for bucket in buckets %}
<th style="width: {{ ranges[forloop.index0] }}%;">{{ bucket }}</th>
{% endfor %}
</tr>
<tr>
{% for bucket in buckets %}
<td class="ui-color{{ values[forloop.index0] }}">
{{ ranges[forloop.index0] }}%
</td>
{% endfor %}
</tr>
</table>
</div>