{% load i18n locale profile_tags common_tags %}
<div class="extra-item-block js-comment-first">
  <div class="extra-item-content">
    {% if unit.commented_by %}
    <div class="extra-item-gravatar">
      <a href="{% url 'pootle-user-profile' unit.commented_by.username %}"
	 title="{{ unit.commented_by.display_name|force_escape|force_escape }}">
	{% avatar unit.commented_by.username unit.commented_by.email_hash 20 %}
      </a>
    </div>
    {% endif %}
    <div class="extra-item">
      {% if cansuggest or cantranslate %}
      <a class="comment-action js-comment-remove">
        <i class="icon-reject" dir="{% locale_dir %}"
          title="{% trans 'Remove comment' %}"></i>
      </a>
      {% endif %}
      <span class="sidetitle">{% trans "Last comment:" %}</span>
      <span class="extra-item-comment">{{ unit.translator_comment }}</span>
    </div>
    {% if unit.commented_by and unit.commented_on %}
    <time class="extra-item-meta js-relative-date" title="{{ unit.commented_on|dateformat }}"
      datetime="{{ unit.commented_on.isoformat }}">&nbsp;</time>
    {% endif %}
  </div>
</div>
