From c45c80dcf9e80f288bce882ac8a9091429002fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20S=C3=A9chet?= Date: Fri, 28 Oct 2022 17:02:15 +0200 Subject: [PATCH] misc: add BEM classes on link-list-cell (#70837) --- .../combo/wcs/form_link_fragment.html | 8 ++++- .../templates/combo/link-list-cell.html | 22 ++++++------- tests/test_cells.py | 33 +++++++++++-------- tests/wcs/test_all.py | 6 ++-- 4 files changed, 40 insertions(+), 29 deletions(-) diff --git a/combo/apps/wcs/templates/combo/wcs/form_link_fragment.html b/combo/apps/wcs/templates/combo/wcs/form_link_fragment.html index 6d4915b6..148ad9d4 100644 --- a/combo/apps/wcs/templates/combo/wcs/form_link_fragment.html +++ b/combo/apps/wcs/templates/combo/wcs/form_link_fragment.html @@ -6,7 +6,13 @@ {% block form-link-pre %}{% endblock %} -{% block form-link-title %}{{ form_title }}{% endblock %} + + {% block form-link-title %}{{ form_title }}{% endblock %} + {% if form_description %}
{% block form-link-description %}{{ form_description|safe }}{% endblock %}
{% endif %} diff --git a/combo/public/templates/combo/link-list-cell.html b/combo/public/templates/combo/link-list-cell.html index 23288a4b..ba7e973e 100644 --- a/combo/public/templates/combo/link-list-cell.html +++ b/combo/public/templates/combo/link-list-cell.html @@ -2,33 +2,33 @@ {% block cell-content %} {% spaceless %} {% block cell-header %} - {% if title %}

{{ title }}

{% endif %} + {% if title %}

{{ title }}

{% endif %} {% include "combo/asset_picture_fragment.html" %} {% endblock cell-header %}