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.
This commit is contained in:
@@ -363,11 +363,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Compliance change history -->
|
||||
{% if compliance_log %}
|
||||
<div class="card border-0 shadow-sm mt-2">
|
||||
<div class="card-header bg-white fw-semibold py-3 d-flex justify-content-between align-items-center">
|
||||
<!-- Compliance per-check history -->
|
||||
<!-- Compliance check history -->
|
||||
{% if check_history %}
|
||||
<div class="card border-0 shadow-sm mt-2">
|
||||
<div class="card-header bg-white fw-semibold py-3 d-flex justify-content-between align-items-center">
|
||||
|
||||
Reference in New Issue
Block a user