12 lines
297 B
HTML
12 lines
297 B
HTML
{% macro compact(name, desc) %}
|
|
{% if not desc %}
|
|
{{ name }}
|
|
{% elif desc | length <= 150 %}
|
|
{{ name }} | {{ desc }}
|
|
{% else %}
|
|
<details>
|
|
<summary>{{ name }} | {{ desc | truncate(length=150) }}</summary>
|
|
{{ desc }}
|
|
</details>
|
|
{% endif %}
|
|
{% endmacro compact %}
|