From cd4357f4177efdd3d46502f4ac7eeb9f1378ef0e Mon Sep 17 00:00:00 2001 From: Louis Date: Wed, 28 Oct 2026 15:20:43 +0100 Subject: [PATCH] fix: always show rack photo card with hint when none found Co-Authored-By: Claude Opus 5.5 --- netbox_customer_export/__init__.py | 2 +- .../templates/netbox_customer_export/export.html | 8 +++++--- pyproject.toml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/netbox_customer_export/__init__.py b/netbox_customer_export/__init__.py index 75cbd91..6edb000 100644 --- a/netbox_customer_export/__init__.py +++ b/netbox_customer_export/__init__.py @@ -5,7 +5,7 @@ class CustomerExportConfig(PluginConfig): name = "netbox_customer_export" verbose_name = "Kunden-Export" description = "Kundendokumentation als PDF oder Word exportieren" - version = "0.12.0" + version = "0.12.1" author = "Claude" base_url = "customer-export" min_version = "4.6.8" diff --git a/netbox_customer_export/templates/netbox_customer_export/export.html b/netbox_customer_export/templates/netbox_customer_export/export.html index 49f0bd2..99c7dcb 100644 --- a/netbox_customer_export/templates/netbox_customer_export/export.html +++ b/netbox_customer_export/templates/netbox_customer_export/export.html @@ -138,10 +138,12 @@ - {% if rack_photos %} -
+

Rack-Fotos

+ {% if not rack_photos %} +
Keine Bildanhänge an Racks in diesem Scope gefunden. Fotos lassen sich am Rack über Bild anhängen hochladen.
+ {% else %}
Ausgewählte Fotos erscheinen im Anhang am Dokumentende, unter der jeweiligen Rack-Ansicht steht ein Verweis darauf.
{% for rack, atts in rack_photos %}
@@ -160,9 +162,9 @@
{% endfor %} + {% endif %}
- {% endif %}

Topologie diff --git a/pyproject.toml b/pyproject.toml index 95257ee..fea8f5a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "netbox-customer-export" -version = "0.12.0" +version = "0.12.1" description = "NetBox-Plugin: Kundendokumentation (PDF/Word) für Standorte, Lokationen, Mandanten und Mandantengruppen" readme = "README.md" requires-python = ">=3.10"