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