#19002: Display boolean attributes as checkmarks (#19168)

This commit is contained in:
Jeremy Stretch 2025-04-14 08:57:15 -04:00 committed by GitHub
parent d55f02b25f
commit 3444dc503d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,7 +75,13 @@
{% for k, v in object.attributes.items %}
<tr>
<th scope="row">{{ k }}</th>
<td>{{ v|placeholder }}</td>
<td>
{% if v is True or v is False %}
{% checkmark v %}
{% else %}
{{ v|placeholder }}
{% endif %}
</td>
</tr>
{% endfor %}
</table>