This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
devicehub-teal/ereuse_devicehub/resources/device/templates/devices/macros.html
Xavier Bustamante Talavera 3bd4168174 Add macros
2018-10-03 15:30:34 +02:00

19 lines
474 B
HTML

{% macro component_type(components, type) %}
<ul class="list-unstyled">
{% for c in components if c.t == type %}
<li>
<strong>{{ c.__format__('t') }}</strong>
<p>
<small>{{ c.__format__('s') }}</small>
</p>
</li>
{% endfor %}
</ul>
{% endmacro %}
{% macro rate(range) %}
<span class="label label-primary">
{{ range }}
</span>
{% endmacro %}