Add rack role & type layouts
Some checks are pending
CI / build (20.x, 3.12) (push) Waiting to run
CI / build (20.x, 3.13) (push) Waiting to run

This commit is contained in:
Jeremy Stretch
2025-11-03 13:33:39 -05:00
parent 21bb734dcb
commit 17cffd7860
7 changed files with 155 additions and 6 deletions

View File

@@ -0,0 +1 @@
{% checkmark object.desc_units %}

View File

@@ -0,0 +1 @@
<span class="badge color-label" style="background-color: #{{ color }}">&nbsp;</span>

View File

@@ -0,0 +1,12 @@
{% load i18n %}
<span{% if style %} class="{{ style }}"{% endif %}>
<span{% if name %} id="attr_{{ name }}"{% endif %}>{{ value }}</span>
{% if unit %}
{{ unit|lower }}
{% endif %}
</span>
{% if copy_button %}
<a class="btn btn-sm btn-primary copy-content" data-clipboard-target="#attr_{{ name }}" title="{% trans "Copy to clipboard" %}">
<i class="mdi mdi-content-copy"></i>
</a>
{% endif %}