{% extends "sentry/emails/base.html" %} {% load timezone from tz %} {% load sentry_avatars %} {% load sentry_helpers %} {% load sentry_features %} {% load sentry_assets %} {% load i18n static %} {% block head %} {{ block.super }} {% endblock %} {% block preheader %} New alert from {{ project_label }}. {% endblock %} {% block header %}
{{ block.super }}
{% if not has_alert_integration %} Set up in Slack {% endif %} View on Sentry
{% endblock %} {% block content %} {% if not group.project.flags.has_transactions %} {% endif %}

New alert from {{ project_label }} {% if environment %} in {{ environment }}{% endif %}

{% if enhanced_privacy %}
ID: {{ event.event_id }}
{% if timezone %}
{{ event.datetime|timezone:timezone|date:"N j, Y, g:i:s a e"}}
{% else %}
{{ event.datetime|date:"N j, Y, g:i:s a e"}}
{% endif %}
Details about this issue are not shown in this notification since enhanced privacy controls are enabled. For more details about this issue, view this issue on Sentry.
{% else %}
Issue
{{ group.get_level_display }}
{% with type=event.get_event_type metadata=event.get_event_metadata transaction=event.transaction %} {% 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 %}

{% elif type == "transaction" %}

{{ issue_type|truncatechars:40 }}
{{ subtitle|truncatechars:40 }}

{% else %}

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

{% endif %} {% endwith %}
ID: {{ event.event_id }}
{% if timezone %}
{{ event.datetime|timezone:timezone|date:"N j, Y, g:i:s a e"}}
{% else %}
{{ event.datetime|date:"N j, Y, g:i:s a e"}}
{% endif %}
{% if commits %}

Suspect Commits

{% for commit in commits %} {% endfor %}
{% email_avatar commit.author.name commit.author.email 32 %}
{{ commit.subject }}
{{ commit.shortId }} —  {% if commit.author %} {{ commit.author.name }} {% else %} Unknown Author {% endif %}
{% endif %} {% block performance %}{% endblock %} {% block stacktrace %}{% endblock %} {% if tags %}

Tags

{% endif %} {% endif %}

You are receiving this email due to matching rules: {% for rule in rules %} {{ rule.label }}{% if not forloop.last %}, {% endif %} {% endfor %}

{% if not has_integrations %}

{{ "Get this alert wherever you work" }}

{% endif %} {# support for gmail actions #}
{% endblock %}