{% extends "sentry/emails/activity/generic.html" %}

{% load sentry_helpers %}
{% load sentry_assets %}

{% block action %}
  <a href="{{ activity_link }}" class="btn">View on Sentry</a>
{% endblock %}

{% block activity %}

  <h3>New comment by {{ author.get_display_name }}</h3>

  <table class="note">
    <tr>
      <td class="avatar-column">
        {% if author.get_avatar_type == 'upload' %}
          <img class="avatar" src="{% profile_photo_url author.id size 48 %}">
        {% elif author.get_avatar_type == 'letter_avatar' %}
          {% email_avatar author.get_display_name author.get_label size 48 try_gravatar False %}
        {% else %}
          {% email_avatar author.get_display_name author.get_label size 48 %}
        {% endif %}
      </td>
      <td class="notch-column">
        <img width="7" height="48" src="{% absolute_asset_url 'sentry' 'images/email/avatar-notch.png' %}">
      </td>
      <td>
        <div class="note-body">{{ data.text|urlize|linebreaks }}</div>
      </td>
    </tr>
  </table>

{% endblock %}
