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
476 B
HTML
Raw Normal View History

2018-10-03 13:30:34 +00:00
{% macro component_type(components, type) %}
<ul class="list-unstyled">
{% 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 %}