wcs: remove extra enclosing div in card info cell (#56596)

This commit is contained in:
Frédéric Péters 2021-09-07 08:00:58 +02:00
parent d0c5c209d2
commit 661a387db0
2 changed files with 4 additions and 2 deletions

View File

@ -978,6 +978,10 @@ class WcsCardInfosCell(CardMixin, CellBase):
extra_context['card_schema_id'] = 'cell-%s-card-schema-%s' % (self.pk, self.carddef_reference)
return extra_context
@property
def css_class_names(self):
return '%s card' % super().css_class_names
def get_cell_extra_context(self, context):
extra_context = super().get_cell_extra_context(context)
extra_context['schema'] = self.cached_json

View File

@ -2,7 +2,6 @@
{% block cell-content %}
<div class="card">
{% block cell-header %}
<h2>{{ title }}</h2>
{% include "combo/asset_picture_fragment.html" %}
@ -56,6 +55,5 @@
<p>{% trans 'Unknown Card' %}</p>
</div>
{% endif %}
</div>
{% endblock %}