{% extends 'base_site.html' %} {% load core_tags_and_filters %} {% load i18n %} {% load core_messages_tags_and_filters %} {% load user_tags %} {% block title %}{% translate 'Messages' %} / {% block site_title %}{{ block.super }}{% endblock %}{% endblock %} {% block google_ads %} {% if LANGUAGE_CODE in settings.LANGUAGES_WITH_ADS %} {% if request.user.is_anonymous or request.user.display_ads %} {% endif %} {% endif %} {% endblock %} {% block user_menu_messages_class %}active{% endblock %} {% block content %}
{{ other_participant.user.name }} {{ LANGUAGE_BIDI|yesno:','|safe }} {{ chat.last_message.date_created }} {% if chat.is_unread %} {% endif %}
{% if user.id == chat.last_message.sender_id %} {% translate 'You:' context request.user.get_gender %} {% else %} {{ other_participant.user.name }}: {% endif %} {{ chat.last_message.text|truncatechars:80 }}