openeuropa / oe_bootstrap_theme

Bootstrap-based theme
European Union Public License 1.2
6 stars 13 forks source link

Card pattern: Do not display empty meta. #316

Closed msnassar closed 1 year ago

msnassar commented 1 year ago

The card pattern is displaying empty span when a _meta_item is empty. See https://github.com/openeuropa/oe_bootstrap_theme/blob/1.x/templates/patterns/card/pattern-card.html.twig#L13 Would be nice to do check the emptiness of the _meta_item. e.g.

          {% if _meta_item is not empty %}
            <span class="text-muted me-3">{{ _meta_item }}</span>
          {% endif %}
kp77 commented 1 year ago

Same in the card search variant template.