Projet

Général

Profil

0001-wcs-remove-extra-enclosing-div-in-card-info-cell-565.patch

Frédéric Péters, 07 septembre 2021 08:30

Télécharger (1,54 ko)

Voir les différences:

Subject: [PATCH] wcs: remove extra enclosing div in card info cell (#56596)

 combo/apps/wcs/models.py                     | 4 ++++
 combo/apps/wcs/templates/combo/wcs/card.html | 2 --
 2 files changed, 4 insertions(+), 2 deletions(-)
combo/apps/wcs/models.py
978 978
            extra_context['card_schema_id'] = 'cell-%s-card-schema-%s' % (self.pk, self.carddef_reference)
979 979
        return extra_context
980 980

  
981
    @property
982
    def css_class_names(self):
983
        return '%s card' % super().css_class_names
984

  
981 985
    def get_cell_extra_context(self, context):
982 986
        extra_context = super().get_cell_extra_context(context)
983 987
        extra_context['schema'] = self.cached_json
combo/apps/wcs/templates/combo/wcs/card.html
2 2

  
3 3
{% block cell-content %}
4 4

  
5
<div class="card">
6 5
{% block cell-header %}
7 6
<h2>{{ title }}</h2>
8 7
{% include "combo/asset_picture_fragment.html" %}
......
56 55
  <p>{% trans 'Unknown Card' %}</p>
57 56
</div>
58 57
{% endif %}
59
</div>
60 58

  
61 59
{% endblock %}
62
-