{% extends "sentry/emails/base.html" %}

{% load i18n %}
{% load sentry_helpers %}
{% load sentry_plugins %}

{% block header %}
    <a href="{{ link }}" class="btn">View on Sentry</a>
    <h1>Sentry</h1>
{% endblock %}

{% block inner %}
    {% url 'sentry-group' group.organization.slug group.project.slug group.id as group_link %}
    {% url 'sentry-stream' group.organization.slug group.project.slug as project_link %}
    <div class="event level-{{ group.get_level_display }}">
        <div class="count">
            <span title="{{ group.times_seen }}">{{ group.times_seen|small_count }}</span>
        </div>
        <div class="details">
            <h3>
                <a href="{% absolute_uri group_link %}">
                    {{ group.title }}
                </a>
            </h3>
            <p class="message">
                {{ group.message_short }}
            </p>
            <div class="meta">
                <span class="last-seen pretty-date">{{ group.last_seen }} UTC</span>
                {% if group.avg_time_spent %}
                    <span class="time-spent">{{ group.avg_time_spent|duration }}</span>
                {% endif %}
                <span class="tag">
                    <a href="{% absolute_uri project_link %}">{{ group.project.name }}</a>
                </span>
            </div>
        </div>
    </div>

    <h2>New Note by <span class="highlight">{{ author }}</span></h2>

    <blockquote>
        {{ text|urlize|linebreaks }}
    </blockquote>
{% endblock %}
