Skip to content

Commit

Permalink
Merge pull request #459 from peteeckel/feature/dns-records-in-ip-addr…
Browse files Browse the repository at this point in the history
…ess-table

Improved rendering of the address record links
  • Loading branch information
peteeckel authored Oct 23, 2024
2 parents 4227485 + 6d5b8a3 commit c758560
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion netbox_dns/template_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,12 @@ def right_page(self):
address_records = tables.ManyToManyColumn(
verbose_name="DNS Address Records",
accessor="netbox_dns_records",
linkify=True,
linkify_item=True,
transform=lambda obj: (
obj.fqdn.rstrip(".")
if obj.zone.view.default_view
else f"[{obj.zone.view.name}] {obj.fqdn.rstrip('.')}"
),
)

if not settings.PLUGINS_CONFIG["netbox_dns"].get("dnssync_disabled"):
Expand Down

0 comments on commit c758560

Please sign in to comment.