{% extends 'layout.html' %} {% load staticfiles thumbnail cache core_tags %} {% block title %}{% if obj.h1 %}{{ obj.h1 }}{% else %}Отзывы о запчастях{% endif %}{% endblock %} {% block description %}{% if obj.descriptions %}{{ obj.descriptions }}{% endif %}{% endblock %} {% block keywords %}{% if obj.keywords %}{{ obj.keywords }}{% endif %}{% endblock %} {% block city_menu1 %}{% if obj_city %} в {{ obj_city|city }}{% endif %}{% endblock %} {% block city_menu2 %}{% if obj_city %} в {{ obj_city|city }}{% endif %}{% endblock %} {% block page %}

{{ obj.name }}

{% if not user.is_anonymous %}{% if user.is_staff or review.user == user %}Добавить отзыв{% endif %}{% endif %}
{% if brands %}

Популярные бренды запчастей

{% for brand in brands %} {% if brand != 'A' %}
{{ brand }}
    {% popular_brands brand %}
{% endif %} {% endfor %}
Все бренды
{% endif %}
{% if obj.content %}
{{ obj.content|safe }}
{% endif %} {% if reviews %}

Последние отзывы

{% for object in reviews %}
{% if object.user_name %}{{ object }}{% endif %} {% for name, value in object %} {% if value %} {{ name }} => {{ value }} {% endif %} {% endfor %}
Отзыв от {% if object.user_name %}{{ object.user_name }}{% else %}{{ object.user_username }}{% endif %} о {% if not object.category_detail %}запчастях {% endif %} {% if object.category_detail %}{{ object.category_detail_name }} {% endif %}{{ object.brand_name }}

{{ object.rew|safe|truncatechars:120 }} перейти

{% endfor %}
{% endif %}
{% if bad_brands %}

Запчасти низкого качества

{% for bad_brand in bad_brands %} {% endfor %}
{{ forloop.counter }} {{ bad_brand.name }}
{{ bad_brand.rating|rating_point }}
...
{% endif %} {% main_zapchasti obj_city %} {% endblock %}