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

{% if metadata.type %} {{metadata.type|truncatechars:40}} {% if transaction %} {{ transaction }} {% endif %}
{% if metadata.value %} {{ metadata.value|truncatechars:100|soft_break:40 }} {% endif %} {% else %} {{metadata.value|truncatechars:40}}
{% if transaction %} {{ transaction }} {% endif %} {% endif %}

{% elif type == "csp" %}

{{metadata.directive|truncatechars:40}}
{% if metadata.uri %} {{ metadata.uri }} {% endif %}

{% else %}

{{group.title|truncatechars:40}}
{% if transaction %} {{ transaction }} {% endif %}

{% endif %}
{% endwith %}