ui2022/card__infobox__details.html.twig line 1

Open in your IDE?
  1. {% set title = _args.title|default('—') %}
  2. {% set subtitle = _args.subtitle|default(null) %}
  3. {% set action = _args.action|default(null) %}
  4. {% set content = _args.content %}
  5. <span class="h1 mb-0 text-medium d-block">{{- title -}}</span>
  6. {% if subtitle is not empty %}
  7.     <span class="d-block text-semibold">
  8.         {{ subtitle }}
  9.         {% if action is not empty %}
  10.             <a class="text-medium font-14 text-body text-underline" href="{{- action.link|default('#') -}}">
  11.                 {{- action.text -}}
  12.             </a>
  13.         {% endif %}
  14.     </span>
  15. {% endif %}
  16. {% if content is not empty %}
  17.     <span class="font-13 text-medium">
  18.         {{- content -}}
  19.     </span>
  20. {% endif %}