{% load i18n seahub_tags avatar_tags%} {% load url from future %} {# for file/dir 'discuss to grp' #} {% for msg in messages %}
  • {% avatar msg.from_email 48 %}
    {{ msg.from_email|email2nickname }} {{ msg.timestamp|translate_seahub_time }}

    {{ msg.message|seahub_urlize|find_at|linebreaksbr }}

    {% blocktrans with amount=msg.reply_cnt %}{{ amount }} replies{% endblocktrans %} {% trans "Hide replies" %}
    {% if msg.reply_cnt == 0 %}
      {% else %}
        {% for r in msg.replies %}
      • {% with id=r.from_email|id_or_email name=r.from_email|email2nickname %} {% avatar r.from_email 28 %}
        {{ name }} {{ r.timestamp|translate_seahub_time }} {% trans 'Reply' %}

        {{ r.message|seahub_urlize|find_at|linebreaksbr }}

        {% endwith %}
      • {% endfor %}
      {% endif %}

      {% trans "It can not be blank and should be no more than 2048 characters." %}

    • {% endfor %}