{# templates/widgets/data/traceback.html.j2 #}
{% macro render_traceback(widget) %}
    {% if widget.list_traceback %}
        <div class="alert alert-important alert-danger alert-dismissible" role="alert">
          <div class="alert-icon"><i class="ti ti-alert-triangle"></i></div>
          <div>
            <h4 class="alert-heading">An error occurred:</h4>
            <pre class="alert-pre" style="white-space: pre-wrap; word-break: break-word;">{% for line in widget.list_traceback %}{{ line }}
{% endfor %}</pre>
          </div>
          <a class="btn-close" data-bs-dismiss="alert" aria-label="close"></a>
        </div>
    {% endif %}
{% endmacro %}