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

19 lines
454 B
HTML
Raw Normal View History

2018-10-03 13:30:34 +00:00
{% macro component_type(components, type) %}
2018-10-16 09:13:21 +00:00
<ul>
2018-10-03 13:30:34 +00:00
{% for c in components if c.t == type %}
<li>
{{ c.__format__('t') }}
2018-10-03 13:30:34 +00:00
<p>
<small class="text-muted">{{ c.__format__('s') }}</small>
2018-10-03 13:30:34 +00:00
</p>
</li>
{% endfor %}
</ul>
{% endmacro %}
{% macro rate(range) %}
<span class="label label-primary">
{{ range }}
</span>
{% endmacro %}