1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #15616: Tweak button class for invalid custom links

This commit is contained in:
Jeremy Stretch
2024-04-05 14:17:58 -04:00
parent 0abd0948b6
commit 25c39ce480

View File

@ -65,7 +65,7 @@ def custom_links(context, obj):
rendered['link'], rendered['link_target'], cl.button_class, rendered['text']
)
except Exception as e:
template_code += f'<a class="btn btn-sm btn-outline-dark" disabled="disabled" title="{e}">' \
template_code += f'<a class="btn btn-sm btn-outline-secondary" disabled="disabled" title="{e}">' \
f'<i class="mdi mdi-alert"></i> {cl.name}</a>\n'
# Add grouped links to template