{% 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 %} {{ group_header }} 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 %}

{% if has_issue_states and group_header %} {{ group_header }} {% else %} New alert from {{ project_label }} {% if environment %} in {{ environment }}{% endif %} {% endif %}

{% if notification_reason %}
{{ notification_reason }}
{% 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 %} {% if not has_issue_states %} {% endif %}
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 %}

{% if issue_title %} {{ issue_title|truncatechars:40 }} {% else %} {{ event.title|truncatechars:40 }} {% endif %} {% if culprit %} {{ culprit }} {% elif transaction %} {{ transaction }} {% endif %}
{% if subtitle %} {{ subtitle|truncatechars:40|soft_break:40 }} {% 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 has_issue_states %}
{% if environment %} {% endif %}
project {{ project_label }}
environment {{ environment }}
level {{ group.get_level_display }}
{% 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 table %}{% endblock %} {% if issue_replays_url %}

Session Replay

Session Replay: Session Replay See a replay of this issue
{% endif %} {% block stacktrace %}{% endblock %} {% if tags %}

Tags

{% endif %} {% endif %}

{% if snooze_alert %} Mute this alert {% endif %} This email was triggered by {% 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 %}