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

fix device & device component templates

This commit is contained in:
checktheroads
2021-03-14 17:26:33 -07:00
parent 3bb2b9e8f6
commit 187f4fa4aa
14 changed files with 175 additions and 229 deletions

View File

@ -143,7 +143,7 @@ class ButtonsColumn(tables.TemplateColumn):
:param return_url_extra: String to append to the return URL (e.g. for specifying a tab) (optional)
"""
buttons = ('changelog', 'edit', 'delete')
attrs = {'td': {'class': 'text-right text-nowrap noprint'}}
attrs = {'td': {'class': 'text-end text-nowrap noprint'}}
# Note that braces are escaped to allow for string formatting prior to template rendering
template_code = """
{{% if "changelog" in buttons %}}