mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 01:41:22 -06:00
Fixes #14432: Fix hyperlinks for global search result attributes
This commit is contained in:
parent
f58d80643c
commit
5d2f499ffb
@ -1,3 +1,11 @@
|
|||||||
|
# NetBox v3.7
|
||||||
|
|
||||||
|
## v3.7-beta2 (FUTURE)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* [#14432](https://github.com/netbox-community/netbox/issues/14432) - Fix hyperlinks for global search result attributes
|
||||||
|
|
||||||
## v3.7-beta1 (2023-12-05)
|
## v3.7-beta1 (2023-12-05)
|
||||||
|
|
||||||
### Breaking Changes
|
### Breaking Changes
|
||||||
|
@ -5,7 +5,7 @@ SEARCH_RESULT_ATTRS = """
|
|||||||
>
|
>
|
||||||
{{ name|bettertitle }}:
|
{{ name|bettertitle }}:
|
||||||
{% with url=value.get_absolute_url %}
|
{% with url=value.get_absolute_url %}
|
||||||
{% if url %}<a href="url">{% endif %}
|
{% if url %}<a href="{{ url }}">{% endif %}
|
||||||
{% if value|length > 40 %}
|
{% if value|length > 40 %}
|
||||||
{{ value|truncatechars:"40" }}
|
{{ value|truncatechars:"40" }}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
Loading…
Reference in New Issue
Block a user