#18204: Misc cleanup

This commit is contained in:
Jeremy Stretch
2025-08-12 15:07:56 -04:00
parent 4afc4daa2d
commit 1bbaaed08b
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -40,9 +40,8 @@ __all__ = (
IMAGEATTACHMENT_IMAGE = """
{% if record.image %}
<a class="image-preview" href="{{ record.image.url }}" target="_blank">
<i class="mdi mdi-image"></i>
</a>
<a href="{{ record.image.url }}" target="_blank" class="image-preview" data-bs-placement="top">
<i class="mdi mdi-image"></i></a>
{% endif %}
<a href="{{ record.get_absolute_url }}">{{ record }}</a>
"""
@@ -236,6 +235,7 @@ class ImageAttachmentTable(NetBoxTable):
image = columns.TemplateColumn(
verbose_name=_('Image'),
template_code=IMAGEATTACHMENT_IMAGE,
attrs={'td': {'class': 'text-nowrap'}}
)
name = tables.Column(
verbose_name=_('Name'),
@@ -255,7 +255,7 @@ class ImageAttachmentTable(NetBoxTable):
verbose_name=_('Object Type'),
)
parent = tables.Column(
verbose_name=_('Parent'),
verbose_name=_('Object'),
linkify=True,
orderable=False,
)