{% extends "shop/base.html" %} {% load thumbnail %} {% load i18n %} {% block pagename %}{{ brand.name }}{% endblock %} {% block extra-head %} {% if category.meta %} {% endif %} {% endblock %} {% block navbar %}
  • {% trans 'Home' %}
  • {% if brand.brand %}
  • {{ brand.brand.translation.name }}
  • {% endif %}
  • {{ brand.translation.name }}
  • {% endblock %} {% block content %} {% with brand.translation as translated %}

    {{ translated.name }}

    {% if translated.picture %} {% thumbnail translated.picture 85x85 as image %} {{ translated.name }} {% endif %} {% if translated.description %}
    {{ translated.description|safe }}
    {% endif %} {% if user.is_staff or user.is_superuser %}

    Edit this brand

    {% endif %}
    {% if brand.has_content %} {% if brand.has_products %}
    {% for product in products %}
    {% thumbnail product.main_image.picture 85x85 as image %}
    {{ product.translated_name }}
    {% endfor %}
    {% endif %} {% if brand.has_categories %}

    {% trans 'View more products in these categories' %}

    {% for cat in brand.active_categories %}{% with cat.translation as translatedcat %}
    {% thumbnail translatedcat.picture 85x85 as image %}
    {{ translatedcat.name }}
    {% endwith %}{% endfor %}
    {% endif %} {% endif %} {% if sale %} {% include "product/some_discount_eligible.html" %} {% endif %}
    {% endwith %} {% endblock %}