{% extends "base.html" %} {% from "_person.html" import person %} {% from "_reaction.html" import reaction %} {% from "_attachments.html" import attachments %} {% block title %}{{ thread.title }}{% endblock %} {% block main %}
{% if thread.pinned %}Fijado{% endif %} {% if thread.locked %}Cerrado{% endif %} {{ person(author.display_name, author.gitea_login, author.profile_published) }} · {% 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 %} {% if is_admin %}
{% endif %}

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

{% for c in comments %}
{{ person(c.author, c.author_login, c.author_published) }} · {% 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 %}