{% extends "django_classified/_base.html" %} {% load classified %} {% load humanize %} {% load i18n %} {% load thumbnail %} {% block title %}{{ object.title }}{% endblock title %} {% block meta_description %}{{ object.description|truncatechars:160 }}{% endblock meta_description %} {% block meta_keywords %}{{ object.get_keywords }}{% endblock meta_keywords %} {% block meta_og %} {% with images=object.image_set.all %} {% for img in images %} {% thumbnail img.file "x800" as im %} {% endthumbnail %} {% endfor %} {% endwith %} {% endblock %} {% block body %} {% with images=object.image_set.all %} {# JSON-LD rather than inline microdata: Google's preferred format, and one #} {# block is easier to keep correct than attributes spread across the page. #}

{% if object.area %}{{ object.area }} · {% endif %} {{ object.group.section.title }} · {{ object.group.title }}

{{ object.title }}

{{ object.price|currency }}

{% include "django_classified/admin_toolbar.inc.html" %}
{{ object.description|urlize|linebreaks }}
{% if images %} {# Replaces lightbox2, which required jQuery. Bootstrap's own modal and #} {# carousel cover this with no additional dependency. #} {% endif %} {% if object.contact_phone %}
{% if DCF.LOGIN_TO_CONTACT and not user.is_authenticated %} {% trans "Please" %} {% trans "login" %} {% trans "to see contact information." %} {% else %} {% trans "Contact phone" %}: {{ object.contact_phone }} {% endif %}
{% endif %}

{% trans 'Posted' %}: {{ object.posted|timesince }} ago

{% endwith %} {% if object.related_items %}

{% trans "Related items" %}

{% endif %} {% endblock %} {% block ext_scripts %} {% endblock %}