We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b0e8c1 commit 3e43226Copy full SHA for 3e43226
netbox/netbox/ui/panels.py
@@ -65,6 +65,7 @@ def get_context(self, context):
65
'object': context.get('object'),
66
'title': self.title,
67
'actions': self.actions,
68
+ 'panel_class': self.__class__.__name__,
69
}
70
71
def render(self, context):
netbox/templates/ui/panels/_base.html
@@ -1,3 +1,4 @@
1
+<!-- begin {{ panel_class|default:"panel" }} -->
2
<div class="card">
3
<h2 class="card-header">
4
{{ title }}
@@ -11,3 +12,4 @@ <h2 class="card-header">
11
12
</h2>
13
{% block panel_content %}{% endblock %}
14
</div>
15
+<!-- end {{ panel_class|default:"panel" }} -->
0 commit comments