15 lines
960 B
Django/Jinja
15 lines
960 B
Django/Jinja
{% macro badge(stability, deprecated, note) -%}
|
|
{%- if deprecated %}<br>{{ deprecated_note(deprecated, note) }}
|
|
{%- elif stability == "mixed" %}
|
|
{%- elif stability == "stable" %}
|
|
{%- elif stability == "release_candidate" %}
|
|
{%- elif stability == "deprecated" %}
|
|
{%- elif stability == "experimental" %}
|
|
{%- elif stability == "development" %}
|
|
{%- else %}{{ "Unknown stability." }}
|
|
{%- endif %}
|
|
{%- endmacro %}
|
|
|
|
|
|
{% macro deprecated_note(deprecated, note) %}{{ (deprecated.note if deprecated.note is defined else note) | trim }}{%- endmacro %}
|