{% set current_theme = current_theme() %} {{ current_theme.headertags() }} {{ _('Mis Mensajes') }} {{ current_theme.local_style() }} {{ current_theme.navbar() }}
{{ current_theme.notify() }}

{% if threads %}
{% for thread in threads %}
{% set first_message = thread.messages.first() %} {% if first_message %} {{ first_message.content.split('\n')[0][:100] }}... {% else %} Thread #{{ thread.id[:8] }} {% endif %}

{{ _("Curso") }}: {{ thread.course.nombre }} | {{ _('Por:') }} {{ thread.student.nombre }} {{ thread.student.apellido }} | {{ thread.timestamp.strftime('%d/%m/%Y %H:%M') }} | {{ _("Mensajes") }}: {{ thread.messages.count() }}

{% if thread.status == "open" %} {{ _("Abierto") }} {% elif thread.status == "fixed" %} {{ _('Resuelto') }} {% elif thread.status == "closed" %} {{ _("Cerrado") }} {% endif %}
{% endfor %}
{% else %}
{{ _('No hay mensajes') }}
{% if current_user.tipo == "student" %}

{{ _('No has enviado ningún mensaje aún.') }}

{% else %}

{{ _('No hay mensajes de estudiantes en tus cursos.') }}

{% endif %}
{% endif %}