Commit 6e0d7581 authored by Andrii Chyrskyi's avatar Andrii Chyrskyi Committed by Tiago Siqueira
Browse files

Issue #3269485: Socialbase 2.1.5 - WSOD - A template that extends another one...

Issue #3269485: Socialbase 2.1.5 - WSOD - A template that extends another one cannot include content outside Twig blocks.
parent ced0fdbe
Loading
Loading
Loading
Loading
+2 −3
Changes for templates/comment/input--button--comment.html.twig: 2 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -2,8 +2,8 @@

{% set attributes = attributes.addClass('btn--comment-submit') %}

{% apply spaceless %}
{% block input %}
  {% apply spaceless %}
    <button{{ attributes.addClass(classes) }}>
      <span class="label">{{ label }}</span>
      <svg class="btn-icon" aria-hidden="true">
@@ -12,6 +12,5 @@
      </svg>

    </button>{{ children }}

  {% endblock %}
  {% endapply %}
{% endblock %}
+2 −2
Changes for templates/form/input--button--split.html.twig: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -22,8 +22,8 @@
 * @ingroup templates
 */
#}
{% apply spaceless %}
{% block input %}
  {% apply spaceless %}
    {% if default_button %}
      {% if icon_only %}
        <button{{ attributes.addClass(classes, 'icon-only') }}>
@@ -58,5 +58,5 @@
      <span class="sr-only">{{ 'Toggle Dropdown'|t }}</span>
    </button>
    {{ children }}
  {% endblock %}
  {% endapply %}
{% endblock %}
+2 −2
Changes for templates/form/input--button.html.twig: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -22,8 +22,8 @@
 * @ingroup templates
 */
#}
{% apply spaceless %}
{% block input %}
  {% spaceless %}
    {% if icon_only %}
      <button{{ attributes.addClass(classes, 'icon-only') }}>
        <span class="sr-only">{{ label }}</span>
@@ -45,5 +45,5 @@
      </span>
    {% endif %}
    {{ children }}
  {% endspaceless %}
{% endblock %}
{% endapply %}