{% extends "klisha/base.html" %} {% load i18n %} {% block head.title %}{{ object.title }}{% endblock %} {% load thumbnail %} {% block head.description %}{{ object.description }}{% endblock %} {% block body.content %}
{% if object.picture|is_portrait%} {% thumbnail object.picture "x930" crop="center" as im %} {{ object.title }} {% endthumbnail %} {% else %} {% thumbnail object.picture "930" crop="center" as im %} {{ object.title }} {% endthumbnail %} {% endif %}
{{ object.title }}
{% if object.description %} {{ object.description|safe }}
{% endif %}
{% trans "Publication date:" %} {{ object.published_at }}
{% trans "Category:" %} {{ object.category }} {% if object.tags.all %}
{% trans "Tags:" %} {% for tag in object.tags.all %} {% if forloop.revcounter == 1 and object.tags.all|length > 1 %} and {% endif %} {{ tag.title }}{% if forloop.revcounter > 2 %},{% endif %}{% if forloop.last %}.{% endif %} {% endfor %} {% endif %}
{% include "klisha/include/thumbnails.html" with url_name="picture-detail" subclass="no-bottom-margin" %}
{% endblock %}