{% extends "sentry/emails/base.html" %} {% load sentry_avatars %} {% load sentry_helpers %} {% load sentry_features %} {% load i18n %} {% block preheader %} New alert from {{ project_label }}. {% endblock %} {% block header %} View on Sentry {{ block.super }} {% endblock %} {% block main %}

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

{% if enhanced_privacy %}
ID: {{ event.event_id }}
{{ event.datetime|date:"N j, Y, g:i:s a e" }}
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 %}

{% else %}

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

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

Suspect Commits

{% for commit in commits %} {% endfor %}
{% email_avatar commits.author.name commits.author.email size 32 %}
{{ commit.subject }}
{{ commit.shortId }} —  {% if commit.author %} {{ commit.author.name }} {% else %} Unknown Author {% endif %}
{% endif %} {% for label, html, _ in interfaces %}

{{ label }}

{{ html }}
{% endfor %} {% if tags %}

Tags

{% endif %} {% endif %} {% if rules %}

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

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