bulma/docs/_includes/elements/variable-row.html

36 lines
1.0 KiB
HTML
Raw Normal View History

2018-06-16 20:12:34 +00:00
<tr>
<td >
<code style="white-space: nowrap;">{{ include.variable.name }}</code>
</td>
2018-06-17 00:05:48 +00:00
2018-06-16 20:12:34 +00:00
<td>
2018-06-17 00:05:48 +00:00
<small class="tag">
2018-06-16 20:12:34 +00:00
{% if include.variable.computed_type and include.variable.computed_type != include.variable.type %}
{{ include.variable.computed_type }}
{% else %}
{{ include.variable.type }}
{% endif %}
</small>
</td>
2018-06-17 00:05:48 +00:00
2018-06-16 20:12:34 +00:00
<td>
2018-06-17 00:05:48 +00:00
{% if include.variable.type == 'color' %}
{% include elements/color-square.html value=variable.value %}
{% else %}
<code>{{ include.variable.value }}</code>
2018-06-16 20:12:34 +00:00
{% endif %}
</td>
2018-06-17 00:05:48 +00:00
{% unless include.hide_computed %}
<td>
{% if include.variable.computed_value != '' %}
{% if include.variable.computed_type == 'color' %}
{% include elements/color-square.html value=variable.computed_value %}
{% elsif include.variable.computed_value and include.variable.computed_value != include.variable.value %}
<code>{{ include.variable.computed_value }}</code>
{% endif %}
{% endif %}
</td>
{% endunless %}
2018-06-16 20:12:34 +00:00
</tr>