| 1 |
{#- Template for object labels. |
| 2 |
|
| 3 |
Labels are additional information that can be displayed alongside an object. |
| 4 |
Example labels include "property", "writable" or "cached" for properties, |
| 5 |
"classmethod" or "staticmethod" for methods, etc. |
| 6 |
|
| 7 |
Context: |
| 8 |
labels (list): The list of labels to render. |
| 9 |
config (dict): The configuration options. |
| 10 |
-#} |
| 11 |
|
| 12 |
{% if config.show_labels and labels %} |
| 13 |
{% block logs scoped %} |
| 14 |
{#- Logging block. |
| 15 |
|
| 16 |
This block can be used to log debug messages, deprecation messages, warnings, etc. |
| 17 |
-#} |
| 18 |
{{ log.debug("Rendering labels") }} |
| 19 |
{% endblock logs %} |
| 20 |
<span class="doc doc-labels"> |
| 21 |
{% for label in labels|sort %} |
| 22 |
<small class="doc doc-label doc-label-{{ label }}"><code>{{ label }}</code></small> |
| 23 |
{% endfor %} |
| 24 |
</span> |
| 25 |
{% endif %} |