{% set current_theme = current_theme() %} {{ current_theme.headertags() }} {{ mde.css }} Conversación - {{ thread.course.nombre }} {{ current_theme.local_style() }} {{ current_theme.navbar() }}
{{ current_theme.notify() }}

{% if thread.status == "open" %} Abierto {% if current_user.tipo == "student" %} Marcar como Resuelto {% endif %} {% if current_user.tipo in ["instructor", "moderator", "admin"] %} Cerrar Hilo {% endif %} {% elif thread.status == "fixed" %} Resuelto {% if current_user.tipo in ["instructor", "moderator", "admin"] %} Cerrar Hilo {% endif %} {% elif thread.status == "closed" %} Cerrado {% endif %}
Estudiante: {{ thread.student.nombre }} {{ thread.student.apellido }}
{{ thread.timestamp.strftime('%d/%m/%Y %H:%M') }}
{% if thread.closed_at %} Cerrado: {{ thread.closed_at.strftime('%d/%m/%Y %H:%M') }} {% endif %}
{% for message in messages %}
{{ message.sender.nombre }} {{ message.sender.apellido }} {{ message.sender.tipo | title }}
{{ message.timestamp.strftime('%d/%m/%Y %H:%M') }} {% if message.read_at %}
Leído: {{ message.read_at.strftime('%d/%m/%Y %H:%M') }} {% endif %} {% if message.is_reported %}
Reportado {% endif %}
{{ mkdonw2thml(message.content) | safe }}
{% if not message.is_reported and message.sender_id != current_user.usuario %}
{% endif %}
{% if not message.is_reported and message.sender_id != current_user.usuario %} {% endif %} {% endfor %}
{% if thread.status != "closed" and (current_user.tipo in ["instructor", "moderator", "admin"] or current_user.usuario == thread.student_id) %}
Responder
{{ reply_form.csrf_token }} {{ reply_form.thread_id }}
{{ reply_form.content }} {% if reply_form.content.errors %}
{% for error in reply_form.content.errors %}
{{ error }}
{% endfor %}
{% endif %}
{{ mde.preview }} {{ mde.js }}
{% elif thread.status == "closed" %}
Este hilo ha sido cerrado y no se pueden agregar más respuestas.
{% endif %}
Información del Hilo

Curso:
{{ thread.course.nombre }}

Estado:
{% if thread.status == "open" %} Abierto {% elif thread.status == "fixed" %} Resuelto {% elif thread.status == "closed" %} Cerrado {% endif %}

Creado:
{{ thread.timestamp.strftime('%d/%m/%Y %H:%M') }}

{% if thread.closed_at %}

Cerrado:
{{ thread.closed_at.strftime('%d/%m/%Y %H:%M') }}

{% endif %}

Mensajes:
{{ messages|length }}