Add macros
This commit is contained in:
parent
77c96c5956
commit
3bd4168174
|
@ -0,0 +1,18 @@
|
|||
{% 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 %}
|
Reference in New Issue