{% extends "base.html" %} {% block content %}
{% if article.image %} {% endif %}

{{ article.title }}

{% if article.author %} {{ article.author.fullname }} {% else %} مدیر {% endif %} {{ article.created_at|persian_date }} {{ article.view_count|default(0)|persian_numbers }} بازدید {{ article.reading_time|default(article.get_reading_time()) }} دقیقه مطالعه

{{ article.content|safe }}

بازگشت به مقالات
نظرات ({{ comments|length|default(0)|persian_numbers }})
{% if comments %} {% for comment in comments[:10] %}
{% if comment.user %} {{ comment.user.fullname }} {% else %} کاربر {% endif %} {{ comment.created_at|persian_date }}

{{ comment.content }}

{% endfor %} {% else %}

هنوز نظری ثبت نشده است. اولین نفری باشید که نظر می‌دهید!

{% endif %}
ثبت نظر جدید
{% if session.user_id %}
نظر شما پس از تایید ادمین نمایش داده می‌شود. {% else %}
برای ثبت نظر لطفاً وارد شوید یا ثبت نام کنید.
{% endif %}
مقالات مرتبط
{% for related in articles[:5] %} {% if related.id != article.id %} {{ related.title|truncate(40) }} {% endif %} {% endfor %}
{% endblock %}