From 38991400f2cc52d2e65e111b10ca002c27a76fca Mon Sep 17 00:00:00 2001 From: ske087 Date: Wed, 8 Jul 2026 23:21:51 +0300 Subject: [PATCH] Fix TemplateSyntaxError in assets/detail.html The compliance history section had two bugs: - {% if compliance_log %} opened a card div and card-header div that were never closed, then accidentally wrapped {% if check_history %} inside it - {% if asset.asset_type in Laptop/Desktop %} was missing its closing {% endif %} Fix: remove the broken compliance_log wrapper; check_history now sits at the correct nesting level with its own properly closed card structure; added the missing {% endif %} for the asset_type block. --- IT_asset_management/app/templates/assets/detail.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/IT_asset_management/app/templates/assets/detail.html b/IT_asset_management/app/templates/assets/detail.html index f206bc1..6dda6fb 100644 --- a/IT_asset_management/app/templates/assets/detail.html +++ b/IT_asset_management/app/templates/assets/detail.html @@ -363,11 +363,7 @@ - -{% if compliance_log %} -
-
- + {% if check_history %}