{% load sentry_helpers %} {% with type=group.get_event_type metadata=group.get_event_metadata transaction=group.culprit %}
{% if type == "error" %}

{% if metadata.type %} {% include "sentry/emails/_group_link.html" with text=metadata.type|truncatechars:40 %} {% if transaction %} {{ transaction }} {% endif %}
{% if metadata.value %} {{ metadata.value|truncatechars:100|soft_break:40 }} {% endif %} {% else %} {% include "sentry/emails/_group_link.html" with text=metadata.value|truncatechars:40 %}
{% if transaction %} {{ transaction }} {% endif %} {% endif %}

{% elif type == "csp" %}

{% include "sentry/emails/_group_link.html" with text=metadata.directive|truncatechars:40 %}
{% if metadata.uri %} {{ metadata.uri }} {% endif %}

{% else %}

{% include "sentry/emails/_group_link.html" with text=group.title|truncatechars:40 %}
{% if transaction %} {{ transaction }} {% endif %}

{% endif %}
{% endwith %}