{% extends "base.html" %} {% from "_person.html" import person %} {% from "_reaction.html" import reaction %} {% from "_attachments.html" import attachments %} {% from "_pin.html" import pin %} {% block title %}{{ thread.title }}{% endblock %} {% block main %}
{% if thread.pinned %}Fijado{% endif %} {% if thread.locked %}Cerrado{% endif %} {% if thread.ai_generated %}Generado con IA{% endif %} {{ person(author.display_name, author.gitea_login) }} · {% if thread.edited_at %}(editado){% endif %}

{{ thread.title }}

{{ body_html }}
{{ attachments(thread_images) }}
{{ reaction('thread', thread.id, reactions.get(thread.id), url_for('board.thread', thread_id=thread.id)) }} {% if may_edit(thread) %} Editar {% endif %} {% if may_delete(thread) %}
{% endif %} {# Pinning is curation and a moderator does it; closing a conversation stops named people talking to each other and is an admin's. #} {% if may_pin %} {{ pin(thread, url_for('board.thread', thread_id=thread.id)) }} {% endif %} {% if is_admin %}
{% endif %}

{{ comments|length }} respuesta{{ '' if comments|length == 1 else 's' }}

{% for c in comments %}
{{ person(c.author, c.author_login) }} · {% if c.edited_at %}(editado){% endif %}
{{ to_html(c.body_md) }}
{{ attachments(comment_images.get(c.id, [])) }}
{{ reaction('comment', c.id, comment_reactions.get(c.id), url_for('board.thread', thread_id=thread.id) ~ '#c' ~ c.id) }} {% if may_edit(c) %} Editar {% endif %} {% if may_delete(c) %}
{% endif %}
{% endfor %} {% if thread.locked and not is_admin %}

Este tema está cerrado a nuevas respuestas.

{% else %}
{% endif %} {% endblock %}