From 6355460e013c563bb5817dec289c30789adaf356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Sun, 1 Oct 2023 10:39:09 +0200 Subject: [PATCH] Fix decoder document visualization --- ram/portal/templates/rollingstock.html | 4 +++- ram/ram/__init__.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ram/portal/templates/rollingstock.html b/ram/portal/templates/rollingstock.html index 2a22c7f..dbac360 100644 --- a/ram/portal/templates/rollingstock.html +++ b/ram/portal/templates/rollingstock.html @@ -50,7 +50,7 @@ {% if rolling_stock.decoder %}{% endif %} {% if rolling_stock.notes %}{% endif %} - {% if rolling_stock.document.count > 0 %}{% endif %} + {% if rolling_stock.document.count > 0 or rolling_stock.decoder.document.count > 0 %}{% endif %} {% if rolling_stock_journal.count > 0 %}{% endif %} @@ -292,6 +292,7 @@