{% extends "base.html" %} {% block title %}{{ article.title }}{% endblock %} {% block content %}
Volver a artículos
Publicado

{{ article.title }}

Por {{ article.author.username }}
{{ article.published_at|date:"d M Y" }}
{% if article.summary %}

{{ article.summary }}

{% endif %}

Reacciones

{% if user.is_authenticated %} Like Dislike {% else %} Inicia sesión para reaccionar. {% endif %}
{{ article.content_html|safe }}

Comentarios ({{ comments|length }})

{% if user.is_authenticated %}
{% csrf_token %} {% for field in form %}
{{ field }} {% if field.errors %}

{{ field.errors|striptags }}

{% endif %}
{% endfor %}
{% else %}

Debes iniciar sesión para comentar

{% endif %}
{% for comment in comments %}
{% if comment.user.profile.avatar %} Avatar {% else %} {{ comment.user.username|slice:":1"|upper }} {% endif %}
{{ comment.user.username }} {{ comment.created_at|date:"d M Y H:i" }}

{{ comment.body }}

{% empty %}

No hay comentarios todavía. ¡Sé el primero en comentar!

{% endfor %}
{% endblock %}