{% load i18n %}
{% load bbcode_tags %}
{% load common_tags %}

{% if image.description_bbcode or image.description %}
    <div class="image-description row-fluid">
        <div class="span12">
            <div class="subtle-container">
                <div class="header">
                    <h4>
                        <i class="icon-align-left"></i> {% trans "Description" %}
                    </h4>
                </div>

                <div class="body">
                    {% if image.description_bbcode %}
                        {% highlight_text image.description_bbcode with search_query dialect 'bbcode' as highlighted_text %}
                        {{ highlighted_text | html_image_thumbnails:'image-description-gallery' | safe }}
                    {% else %}
                        {% highlight_text image.description with search_query %}
                    {% endif %}
                </div>
            </div>
        </div>
    </div>
{% endif %}

