{% load sentry_helpers %}

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