Split ObjectPanel into a base class and ObjectAttrsPanel; use base class for e.g. CommentsPanels, JSONPanel, etc.

This commit is contained in:
Jeremy Stretch
2025-11-05 13:21:37 -05:00
parent 838794a5cf
commit 281cb4f586
6 changed files with 164 additions and 87 deletions

View File

@@ -3,8 +3,8 @@
{% block panel_content %}
<div class="card-body">
{% if object.comments %}
{{ object.comments|markdown }}
{% if comments %}
{{ comments|markdown }}
{% else %}
<span class="text-muted">{% trans "None" %}</span>
{% endif %}