mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-22 23:46:44 -06:00
Use tooltips for display attributes
This commit is contained in:
parent
d88a2c599f
commit
f181b14858
@ -1,9 +1,9 @@
|
||||
SEARCH_RESULT_ATTRS = """
|
||||
{% for name, value in record.display_attrs.items %}
|
||||
{% with url=value.get_absolute_url %}
|
||||
<span class="badge bg-secondary">
|
||||
<span class="badge bg-secondary" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{ name|bettertitle }}">
|
||||
{% if url %}<a href="{{ url }}">{% endif %}
|
||||
{{ name|bettertitle }}: {{ value }}
|
||||
{{ value }}
|
||||
{% if url %}</a>{% endif %}
|
||||
</span>
|
||||
{% endwith %}
|
||||
|
Loading…
Reference in New Issue
Block a user